Author Topic: problem of wxwidgets project using static lib in linux  (Read 3029 times)

reasoner

  • Guest
problem of wxwidgets project using static lib in linux
« on: November 02, 2007, 06:20:43 pm »
i am a newer in linux.
installed codeblocks in ubuntu7.04 according to the inference on the forum.
it works well when create and build dynamic linked project.
however when using static lib there is error:

error: wx/wxprec.h: No such file or directory

who could tell me how can i solve the problem? do i need to compile wxwidgets? but how?
thanks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: problem of wxwidgets project using static lib in linux
« Reply #1 on: November 04, 2007, 05:02:47 am »
error: wx/wxprec.h: No such file or directory

1. Make sure you installed wxWidgets headers on the computer. Sometimes under Linux, this requires installing a package with dev in its name, sometime like wxWidgets-devel or wxGTK-dev.

2. Make sure that the include search directory is set correctly. I can not help you with how to do this, windows user here.

Note, if you have multiple versions of wxWidgets installed you must do special things which escape my memory right now.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org