User forums > Help

question on wxwidget sample projects, and where to find more

<< < (2/2)

ollydbg:
Here is the steps I'm trying to import a *.dsp project files. But I failed when building.

1. I use "File->import project -> ms visual c++ project" and pick the menu.dsp.

2. I choose the GNU GCC compiler in a compiler selection dialog.

3. In "configuration selection dialog, I only checked "Win32 Unicode debug"

4. Import finished, and the workplace has a "menu.cpp" and "menu.rc" file.

4. I choose "build". here is the error message:


--- Code: ----------------- Build: Win32 Unicode Debug in menu ---------------

Compiling: menu.rc
Compiling: menu.cpp
Linking executable: vc_mswud\menu.exe
D:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw28ud_core
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
1 errors, 0 warnings
 
--- End code ---


Can someone help me to build this project?
I get stuck here, and can't figure out. Thanks for your help.


MortenMacFly:

--- Quote from: ollydbg on November 24, 2008, 07:56:15 am ---D:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw28ud_core

--- End quote ---
You either don't have the wxWidgets SDK with this configuration (unicode, debug) or you are missing to set the linker path and/or variables. Search the forums how to setup a wxWidgets project in C::B (or let the wizard create one for you) then correct the settings.

Notice: The import wizard cannot and will not know where your wxWidgets SDK is. This is information is available from the VC project file. You need to provide this setup anyways (the same would apply in VC, too).

ollydbg:

--- Quote from: MortenMacFly on November 24, 2008, 12:03:15 pm ---
--- Quote from: ollydbg on November 24, 2008, 07:56:15 am ---D:\Program Files\CodeBlocks\MinGW\bin\ld.exe: cannot find -lwxmsw28ud_core

--- End quote ---
You either don't have the wxWidgets SDK with this configuration (unicode, debug) or you are missing to set the linker path and/or variables. Search the forums how to setup a wxWidgets project in C::B (or let the wizard create one for you) then correct the settings.

Notice: The import wizard cannot and will not know where your wxWidgets SDK is. This is information is available from the VC project file. You need to provide this setup anyways (the same would apply in VC, too).

--- End quote ---
Thanks MortenMacFly. As you said, it was the problem that the linker can't find the Lib files. I change the "search Library path " to ".\..\..\lib\gcc_dll". Note: this is the only modification after imported. Then, I can happily build the exe file.  :D. It was so great!

I'm wondering why the wxwidget develop team haven't add C::B sample project to their distribution. If it is hard to import from another project, many people will give up using C::B.

Navigation

[0] Message Index

[*] Previous page

Go to full version