News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

error: wx_pch.h: No such file or directory

Started by baboo, November 07, 2005, 12:26:42 PM

Previous topic - Next topic

baboo

Hello
I installed CB and i started a new project based on a wxWidgets template. I try to build and rund but the compiler tells me these:

Calculating dependencies for main.cpp...
cc1plus: error: wx_pch.h: No such file or directory
make: *** [.deps/main.d] Error 1
Process terminated with status 1 (0 minutes, 2 seconds)
0 errors, 0 warnings

Did I forget something?
Thank you.

thomas

Do you have wxWidgets?
Code::Blocks does not contain a complete wxWidgets distribution, so if you want to build a wxWidgets application, you must either build wxWidgets yourself or install the libraries and headers from a DevPak.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

mandrav

There's a bug with the wxWidgets template using static wx library. The file wx_pch.h is not copied from the templates directory. Sorry for this inconvenience. Please copy it by hand...
Be patient!
This bug will be fixed soon...

baboo


mandrav

Quote from: baboo on November 07, 2005, 03:35:55 PM
Ok, I copy it where?
Thanks.

I mean, copy it from the templates directory to where you created your project...
Be patient!
This bug will be fixed soon...

Pony

Hi

I'm using Code::Blocks v1.0RC2 on Linux and have the same problem. Whats worst, I don't have wx_pch.h file in my templates directory (/usr/local/share/codeblocks/templates). Any ideas how to solve this? I will be greatfull for help.

tiwag

this issue was fixed after RC2, download one of the recent nightly builds.

Pony

Quote- Linux : not supported yet

As I can see, Nightly builds are Windows only, while I have problem on Linux. Maybe I'm missing something?

mandrav

You have to build it yourself. It's easy though ;).
Be patient!
This bug will be fixed soon...

Pony

The problem was not in building, but in getting source code. I have somehow missed svn download way :oops:. But after doing little search I have downloaded version 1998 from svn, build it and everything seems to be working fine now. Thx for help.