linkage problems
"mygtkinfo" <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
hello
i manually installed gtk on my win98. using mcvc++6.0 compiler,
the ff program to test the installation and it compiled with no errors
#include "gtk\gtk.h"
int main2 (void)
{
GtkWidget *window;
gtk_init;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);
return 0;
}
but gave the ff linkage errors
testgtk.cpp
y:\my documents\c++\testgtk.cpp(8) : warning C4551: function call
missing argument list
Linking...
testgtk.obj : error LNK2001: unresolved external symbol
_gtk_widget_show
testgtk.obj : error LNK2001: unresolved external symbol
_gtk_window_new
Debug/c1.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
c1.exe - 3 error(s), 1 warning(s)
what may be the problem.