View Single Post
Old 02 February 2019, 18:55   #7
Ledfoot
Registered User
 
Join Date: Oct 2018
Location: Cherry Hill, NJ USA
Posts: 85
Quote:
Originally Posted by Leffmann View Post
If you add
lib:amiga.lib
like Sam Crow says then?

You could also declare all the library bases and open them explicitly. Minus error checking etc.:
Code:
#include <intuition/intuitionbase.h>
#include <graphics/gfxbase.h>

struct IntuitionBase *IntuitionBase;
struct Library *GadToolsBase;
struct GfxBase *GfxBase;

IntuitionBase = (void*)OpenLibrary("intuition.library", 36);
GadToolsBase = (void*)OpenLibrary("gadtools.library", 36);
GfxBase = (void*)OpenLibrary("graphics.library", 36);
It also works fine if you use a full and correct install of SAS/C 6.58:
http://eab.abime.net/showpost.php?p=1079045&postcount=7


Ok, this was helpful!

* fixed the link to be lib:amiga.lib
Then tried the code snippets you suggested. Turns out if I just added in the 3 structure pointer declarations that got it to work (I do get warnings about uninitialized pointers, but that's ok since I don't use them at all.) Didn't need the imports or the OpenLibrary calls (from what I understand using the #include <proto> lines up at the top will cause the compiler to automatically do the opens for you, or at least that's what the author of that site claims. Still don't get how creating a variable gets this to work though.

Weird that that got it to work.

And it is a full 6.58 install already on the coffin image...
Ledfoot is offline  
 
Page generated in 0.07242 seconds with 11 queries