Linking to Reaction library

3 posts / 0 new
Last post
jwanderson88
jwanderson88's picture
Offline
Last seen: 2 years 1 week ago
Joined: 2019-04-13 19:29
Linking to Reaction library

I'm using the latest SDK and gcc. There are sections of the program that use Reaction classes. It compiles okay. In the linking phase I get a lot of undefined reference messages like the one below.

o/gcc-amigaos4-latest/MainFrm.o: In function 'CMainFrame::Custom_win()':
MainFrm.cpp:(.text+0x6e): undefined reference to 'WindowClass'
.
.
.

There are 24 of these (some duplicated). They are all Reaction classes. This is probably because I'm not linking to the right library. Can anyone tell me the right library to link to?

Rigo
Rigo's picture
Offline
Last seen: 2 years 5 months ago
Joined: 2011-01-24 21:55
Re: Linking to Reaction library

Try the -lauto switch.

Simon

jwanderson88
jwanderson88's picture
Offline
Last seen: 2 years 1 week ago
Joined: 2019-04-13 19:29
Re: Linking to Reaction library

This was a dumb mistake. These are external variables and I didn't do the Intuition->OpenClass(…) properly. Not a linking problem.

Log in or register to post comments