Menu

I just can not use GTK+ UNDER windows???

2003-01-09
2012-09-26
  • Nobody/Anonymous

    I installed GTK+ PACKAGE. AND SET the inlude path.

    Also I installed the GTK runtime.exe

    I noticed that GTKRUNTIME SETUP create some folders in c:\windows\system32\lib.

    so I also set the lib path to c:\windows\system32\lib.

    but lots of linker error list.
    here is one of them:

    [Linker error] undefined reference to `g_print'.

     
    • Nobody/Anonymous

      Did you link to the right library, i.e. give a compiler command line option something like

      -lxyz

      where libxyz.a is what you are trying to link?  You have to actively link specific libraries, just giving it a path is not sufficient.  The path just enables the command I gave you to find libxyz.a.

      Note you link the library, not the file name of the library.

      Your error also may indicate that you did not include the right header file, what did you

      #include in your code?

      Wayne

       
    • Patrick Ogay

      Patrick Ogay - 2003-01-09

      the lib-path is certainly wrong, I must be something lik that: 
      d:\wingtk\lib    (where the .a files are; libpath doesn't require runtime lib)

      as Wayne said:  -lxyz or L:"x:\fullpath\libxyz.a"

      If the systempath are not set completly, you can use the path for Binaries. (I set it to be able to exec a programm using PCRE-dll  without changing systempath or  DLL-copy).
      Patrick

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.