Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Micha1701 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
-
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
-
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?
-
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