Author Topic: error: wx_pch.h: No such file or directory  (Read 8615 times)

baboo

  • Guest
error: wx_pch.h: No such file or directory
« 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.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: error: wx_pch.h: No such file or directory
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: error: wx_pch.h: No such file or directory
« Reply #2 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...
Be patient!
This bug will be fixed soon...

baboo

  • Guest
Re: error: wx_pch.h: No such file or directory
« Reply #3 on: November 07, 2005, 03:35:55 pm »
Ok, I copy it where?
Thanks.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: error: wx_pch.h: No such file or directory
« Reply #4 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...
Be patient!
This bug will be fixed soon...

Pony

  • Guest
Re: error: wx_pch.h: No such file or directory
« Reply #5 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.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: error: wx_pch.h: No such file or directory
« Reply #6 on: February 13, 2006, 08:46:58 am »
this issue was fixed after RC2, download one of the recent nightly builds.

Pony

  • Guest
Re: error: wx_pch.h: No such file or directory
« Reply #7 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: error: wx_pch.h: No such file or directory
« Reply #8 on: February 13, 2006, 11:14:18 am »
You have to build it yourself. It's easy though ;).
Be patient!
This bug will be fixed soon...

Pony

  • Guest
Re: error: wx_pch.h: No such file or directory
« Reply #9 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.