Author Topic: Precompiled headers  (Read 4715 times)

Offline jvpic

  • Multiple posting newcomer
  • *
  • Posts: 15
  • Breizhad
Precompiled headers
« on: July 13, 2006, 03:10:44 pm »
Hi,

I'm new in C::B. I have compiled de wxWidgets with ming32 the default compiler of C::B. The dll is well constructed.
Console project compile very well.

I want to compile the template for GUI wxWidgets but C::B returns an error:

C::B don't find <wx/wxprec.h>

Somebody can help me ? :(

Thank you.

Jvpic
Windows Xp SP2 Home edition C::B 1.0 nightly 17/07/2006 mingw32 3.4.4 wxWidgets 2.6.3

Offline jvpic

  • Multiple posting newcomer
  • *
  • Posts: 15
  • Breizhad
Re: Precompiled headers
« Reply #1 on: July 13, 2006, 03:21:11 pm »
Another problem because <wx/wx.h> is not find !
The directories of install are :

c:\lang\CodeBlocks
et
c:\Lang\wxWidgets-2.6.3
« Last Edit: July 13, 2006, 05:01:14 pm by jvpic »
Jvpic
Windows Xp SP2 Home edition C::B 1.0 nightly 17/07/2006 mingw32 3.4.4 wxWidgets 2.6.3

sethjackson

  • Guest
Re: Precompiled headers
« Reply #2 on: July 13, 2006, 03:27:12 pm »
Another problem because <wx.wx.h> is not find !
The directories of install are :

c:\lang\CodeBlocks
et
c:\Lang\wxWidgets-2.6.3

Don't you mean <wx.h>?

Offline jvpic

  • Multiple posting newcomer
  • *
  • Posts: 15
  • Breizhad
Re: Precompiled headers
« Reply #3 on: July 13, 2006, 03:37:41 pm »
No I mean exactly <wx/wx.h> and <wx/wxprec.h>

These include files are referenced in the include files of the template !

Jvpic
Windows Xp SP2 Home edition C::B 1.0 nightly 17/07/2006 mingw32 3.4.4 wxWidgets 2.6.3

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Precompiled headers
« Reply #4 on: July 13, 2006, 04:31:49 pm »
No I mean exactly <wx/wx.h> and <wx/wxprec.h>

These include files are referenced in the include files of the template !


Really "/" not "\" ?
If "/" is the directory seperator then it should be a typo (Linux and *nix use this seperator, but not Windows).
Change it to <wx\wx.h> and <wx\wxprec.h>

Correct me if I'm wrong, but I don't think that mingw uses Linux paths on Win, or does it ?
Nightly builds for openSUSE

Offline jvpic

  • Multiple posting newcomer
  • *
  • Posts: 15
  • Breizhad
Re: Precompiled headers
« Reply #5 on: July 13, 2006, 04:53:42 pm »
Really "/" not "\" ?
If "/" is the directory seperator then it should be a typo (Linux and *nix use this seperator, but not Windows).
Change it to <wx\wx.h> and <wx\wxprec.h>

Correct me if I'm wrong, but I don't think that mingw uses Linux paths on Win, or does it ?

Yes it does. The directory separators in header files for wxWidgets on MSW are really "/". So it is in Dev-cpp and wxWidgets and also in URL !

Jvpic
Windows Xp SP2 Home edition C::B 1.0 nightly 17/07/2006 mingw32 3.4.4 wxWidgets 2.6.3

Offline TheTuxKeeper

  • Regular
  • ***
  • Posts: 293
  • daniel2000
Re: Precompiled headers
« Reply #6 on: July 13, 2006, 05:23:23 pm »
Really "/" not "\" ?
If "/" is the directory seperator then it should be a typo (Linux and *nix use this seperator, but not Windows).
Change it to <wx\wx.h> and <wx\wxprec.h>

Correct me if I'm wrong, but I don't think that mingw uses Linux paths on Win, or does it ?

Yes it does. The directory separators in header files for wxWidgets on MSW are really "/". So it is in Dev-cpp and wxWidgets and also in URL !


Ok, then I'm wrong. Ignore it :lol:
Nightly builds for openSUSE

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
Re: Precompiled headers
« Reply #7 on: July 13, 2006, 08:11:21 pm »
add the wx base dir to your include paths, that's the dir that contains on your pc the subdir wx, which in turn contains wx.h.

Example : E:\data\killerbot\wxWidgets-2.6.3\include\

sethjackson

  • Guest
Re: Precompiled headers
« Reply #8 on: July 14, 2006, 03:10:18 am »
No I mean exactly <wx/wx.h> and <wx/wxprec.h>

These include files are referenced in the include files of the template !



I meant <wx/wx.h>.  :oops:

You did have <wx.wx.h>.

Sorry my bad. :P

Offline jvpic

  • Multiple posting newcomer
  • *
  • Posts: 15
  • Breizhad
Re: Precompiled headers
« Reply #9 on: July 14, 2006, 09:15:23 am »
add the wx base dir to your include paths, that's the dir that contains on your pc the subdir wx, which in turn contains wx.h.

Example : E:\data\killerbot\wxWidgets-2.6.3\include\

Ok ! Killerbot, it compiles, hence I have a problem of dll : wxmsw26_gcc_custom.dll which was deplaced. But now all is in order. . I would think it myself !
Thank you. :P
The wxWidgets compilation is relatively a long process and is poorly documented. I have taken the option MONOLITHE=1 and of course the distribution must have the big dll. Perhaps could you indicate me a good and uptodate document for this !

Jvpic
Windows Xp SP2 Home edition C::B 1.0 nightly 17/07/2006 mingw32 3.4.4 wxWidgets 2.6.3