Author Topic: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?  (Read 6457 times)

cherokee

  • Guest
How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« on: August 30, 2005, 10:16:29 am »
I use C::B rc1-1, compiler is VCTK2003.
I encountered serveral errors:
1. setup.h,  I copy it manuly, pass it
2. version.h, I add a directory manuly, pass it
3. info is below:
Project   : wx_gl
Compiler  : Microsoft Visual C++ Toolkit 2003 (called directly)
Directory : D:\wxWidgets-2.6.1\build\msw\
--------------------------------------------------------------------------------
Switching to target: gl - Win32 Debug
glcanvas.cpp
..\..\include\wx\buffer.h(96) : error C3861: 'strdup': identifier not found, even with argument-dependent lookup
..\..\include\wx\buffer.h(96) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Process terminated with status 1 (0 minutes, 0 seconds)
2 errors, 0 warnings
 
I already searched this forum, only find a Command-Line compile wx261 with VCTK2003.
I hope that somebody who compile wx261 successful with VCTK2003 can describe the steps:

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #1 on: August 30, 2005, 01:37:36 pm »
Quote from: cherokee
...I already searched this forum, only find a Command-Line compile wx261 with VCTK2003...
use nmake as you found already in the forum, this will work.

cherokee

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #2 on: August 31, 2005, 03:58:33 am »
I don't want to use Command-Line.  I have already assigned correctly programs such as nmake etc. And I retry it, but the error is still.

I have already installed VC++ 6.0, Platform SDK, VCTK2003.

Does these conflict?

zieQ

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #3 on: August 31, 2005, 08:29:21 am »
The problem is that the visual importers are maybe not perfect yet, so projects files shipped with wxWidget may miss some options in C::B. I'll also suggest you to use command-line, otherwise, see the wiki ;) Seems that the problem is related to wxWidgets, not C::B, except if you have conflicts with VC6 and VCToolkit! Can you show us the C::B compiler settings?
« Last Edit: August 31, 2005, 08:32:15 am by zieQ »

cherokee

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #4 on: August 31, 2005, 09:46:02 am »
Thanks very much. my compiler settings is as below:

compiler is : microsoft visual c++ toolkit 2003

Compiler Settings -> Programs Tab:
Compiler's installation directory:  D:\Program Files\Microsoft Visual C++ Toolkit 2003
C/C++ compiler: cl.exe
linker: link.exe
Debugger: windbg.exe
Resource compiler: RC.exe
make program: nmake.exe
Additional paths: D:\Program Files\Microsoft Platform SDK\Bin



cherokee

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #5 on: August 31, 2005, 09:49:10 am »
And, I have already create a simaple application use C::B with this settings --- use the C::B wizard.  It run well.

zieQ

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #6 on: August 31, 2005, 11:01:33 am »
Oh sorry, that was not the settings I wanted to see but these ones:
- compiler settings>directories>compiler
- compiler settings>directories>linker
Or the equivalents in the project build options

cherokee

  • Guest
Re: How to compile wxWidgets 2.6.1 in C::B with VCTK2003?
« Reply #7 on: August 31, 2005, 11:10:26 am »
sorry:-)

- compiler settings>directories>compiler
D:\Program Files\Microsoft Visual C++ Toolkit 2003\include
D:\Program Files\Microsoft Platform SDK\Include

- compiler settings>directories>linker
D:\Program Files\Microsoft Visual C++ Toolkit 2003\lib

- compiler settings>directories>resource compiler
N/A