News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

problem of wxwidgets project using static lib in linux

Started by reasoner, November 02, 2007, 06:20:43 PM

Previous topic - Next topic

reasoner

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.

stahta01

Quote from: reasoner on November 02, 2007, 06:20:43 PM
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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]