GCC and libraries
Dan Nelson
dnelson at allantgroup.com
Wed Apr 16 20:12:17 PDT 2003
In the last episode (Apr 17), Konrad Scorciapino said:
> I've installed wxWindows libraries, but got some errors when trying
> to compile some code that included them:
>
> konrad at localhost ~/fonte/wx > g++ HelloWorldApp.cpp -o HelloWorldApp
> HelloWorldApp.cpp:1: wx/wxprec.h: No such file or directory
> HelloWorldApp.cpp:4: wx/wx.h: No such file or directory
> konrad at localhost ~/fonte/wx >
>
> After searching, I found those files (wx.h and wxprec.h) at
> /usr/X11R6/include... Do I need to configure anything to make gcc compile?
Add -I/usr/X11R6/include to your compile line, and -L/usr/X11R6/lib to
your link line.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list