Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: reasoner on November 02, 2007, 06:20:43 pm

Title: problem of wxwidgets project using static lib in linux
Post by: reasoner 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.
Title: Re: problem of wxwidgets project using static lib in linux
Post by: stahta01 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