I am trying to build a C++ SWELL project in Linux, in order to test some of the window-related functions.
For example, this is the simple test.cpp file that is included in the WDL/swell folder:
Code:
#include "swell.h"
int main()
{
MessageBox(NULL,"hello world","a",0);
return 0;
}
Compiling the files seem to work fine: When I run make, I get libSwell.so as well as a lot of swell-...o and lice-...o files, without any warning messages.
However, when I try to link test.o and the other object files, I just get endless lists of "undefined reference" errors like these:
Code:
swell-generic-gdk.o: In function `SWELL_GetViewPort(RECT*, RECT const*, bool)':
swell-generic-gdk.cpp:(.text+0x2f01): undefined reference to `gdk_screen_get_default'
swell-generic-gdk.cpp:(.text+0x2f3a): undefined reference to `gdk_screen_get_monitor_at_point'
swell-generic-gdk.cpp:(.text+0x2f5e): undefined reference to `gdk_screen_get_monitor_geometry'
Am I missing some object files? Which object files are required for a simple SWELL project?