Code::Blocks Forums

User forums => Help => Topic started by: baboo on November 07, 2005, 12:26:42 pm

Title: error: wx_pch.h: No such file or directory
Post by: baboo on November 07, 2005, 12:26:42 pm
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.
Title: Re: error: wx_pch.h: No such file or directory
Post by: thomas on November 07, 2005, 12:29:00 pm
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.
Title: Re: error: wx_pch.h: No such file or directory
Post by: mandrav on November 07, 2005, 02:55:05 pm
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...
Title: Re: error: wx_pch.h: No such file or directory
Post by: baboo on November 07, 2005, 03:35:55 pm
Ok, I copy it where?
Thanks.
Title: Re: error: wx_pch.h: No such file or directory
Post by: mandrav on November 07, 2005, 05:40:39 pm
Ok, I copy it where?
Thanks.

I mean, copy it from the templates directory to where you created your project...
Title: Re: error: wx_pch.h: No such file or directory
Post by: Pony on February 12, 2006, 10:12:36 pm
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.
Title: Re: error: wx_pch.h: No such file or directory
Post by: tiwag on February 13, 2006, 08:46:58 am
this issue was fixed after RC2, download one of the recent nightly builds.
Title: Re: error: wx_pch.h: No such file or directory
Post by: Pony on February 13, 2006, 11:04:52 am
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?
Title: Re: error: wx_pch.h: No such file or directory
Post by: mandrav on February 13, 2006, 11:14:18 am
You have to build it yourself. It's easy though ;).
Title: Re: error: wx_pch.h: No such file or directory
Post by: Pony on February 13, 2006, 05:05:14 pm
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.