User forums > Using Code::Blocks

problem of wxwidgets project using static lib in linux

(1/1)

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

--- End quote ---

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

Navigation

[0] Message Index

Go to full version