Welcome, Guest. Please login or register.

Author Topic: How to use chunkyPPC.library with StormC V3?  (Read 9827 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Micha1701Topic starter

  • Newbie
  • *
  • Join Date: Aug 2002
  • Posts: 37
    • Show only replies by Micha1701
    • http://www.lanser-online.de.vu
How to use chunkyPPC.library with StormC V3?
« on: December 20, 2002, 09:19:04 AM »
Hi!

I want to change my program to use the chunkyppc.library. But when I use it the linker failed with the message that OpenGraphics() and CloseGraphics() are not defined... :-(

I included the chunkyppcbase.h and chunkyppc_protos.h files. Also a LinkerLIB created with fd2pragma is included....

In the protos file only the defclarations of these function is present. No amicalls or definitions....

What can I do to make the linker work? Any helping hands here? :-D

-Micha
 

Offline Thomas

Re: How to use chunkyPPC.library with StormC V3?
« Reply #1 on: December 20, 2002, 09:51:50 AM »

Are these functions using tags ? If so, there must be taglist equivalents (e.g. OpenGraphicsA). Use them instead. Or build your own tag stubs. Or try the latest fd2pragma, AFAIK it can create tag stubs.

Bye,
Thomas

Offline Micha1701Topic starter

  • Newbie
  • *
  • Join Date: Aug 2002
  • Posts: 37
    • Show only replies by Micha1701
    • http://www.lanser-online.de.vu
Re: How to use chunkyPPC.library with StormC V3?
« Reply #2 on: December 20, 2002, 09:59:41 AM »
Hi!

No, these functions donĀ“t use tags...

The prototype looks like this:

struct Mode_Screen *OpenGraphics(char *Title, struct Mode_Screen *ms, int override);

Do anybody knows for what "override" stands?
-Micha
 

Offline Glaucus

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 4518
    • Show only replies by Glaucus
    • http://members.shaw.ca/mveroukis/
Re: How to use chunkyPPC.library with StormC V3?
« Reply #3 on: December 25, 2002, 08:31:31 PM »
Quote

The prototype looks like this:

struct Mode_Screen *OpenGraphics(char *Title, struct Mode_Screen *ms, int override);


Hey, is it possible that you supplied arguments that do not perfectly match up with this prototype?  if not then it's possible the C++ compiler thinks you are overloading the function call in which case it would assume it's a normal C++ function that would need to be linked.  Since you're getting a linker error rather then a compile error, I'm thinking it's something along those lines.  Are you sure there is no link library that you're supposed to link with?

  - Mike
YOU ARE NOT IMMUNE