News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

failed to compile wxWidgets projects....

Started by dan, August 13, 2005, 03:03:09 AM

Previous topic - Next topic

dan

I've tried to compile a wxWidgets project according to the following instruction
http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29

However, the compiler had the message:

Linking executable: E:\wxWidgets.exe
mingw32-g++.exe: .objs\main.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

can anyone tell me the reason?
thanks.

grv575

Could you give more information?  What steps did you go through, which compiler are you using (gcc, ?), etc.

dan

I installed MinGW compiler and wxWidgets-2.6.1 as the instruction tells me step by step...
Building wxWidgets->Build the STC library->Copy libraries->Setting up paths

and then the compiler told me the message  :(
what cause .o files can't be built?

grv575

I'm assuming that you compiled wxWidgets successfully using mingw.  Check your project setting against these.  Then click rebuild:










tiwag

the "link library" has to be adjusted according to the used wxWidgets version to "wxmsw26" in standard wxWidgets builds.

grv575

Yeah, it's too bad you can't symlink to major/minor library versions like on linux to handle versioning transparently with windows.

takeshimiya

Quote from: grv575 on August 13, 2005, 09:40:38 AM
Yeah, it's too bad you can't symlink to major/minor library versions like on linux to handle versioning transparently with windows.

Yes, you can, but only in Windows 2000/XP.

Urxae

Quote from: takeshimiya on August 13, 2005, 06:15:21 PM
Quote from: grv575 on August 13, 2005, 09:40:38 AM
Yeah, it's too bad you can't symlink to major/minor library versions like on linux to handle versioning transparently with windows.

Yes, you can, but only in Windows 2000/XP.

As far as I know that only works on directories though, not on individual files so it'll be less neat than it is on Linux where a 'generic' name without version info is symlinked to another name (often in the same directory) with version info.

Oh, and it only works if you're actually using NTFS, not any FAT variants. Though I don't think many people still use FAT when NTFS is available.

dan

Thank grv575 for answering me so clearly.
But it still can't work well, even after I  recompiled wxWidgets library.

However, it can work well on another computer(also Windows XP).
ha~ it's so strange! ^^

takeshimiya

Quote from: Urxae on August 13, 2005, 08:32:35 PM
Quote from: takeshimiya on August 13, 2005, 06:15:21 PM
Quote from: grv575 on August 13, 2005, 09:40:38 AM
Yeah, it's too bad you can't symlink to major/minor library versions like on linux to handle versioning transparently with windows.

Yes, you can, but only in Windows 2000/XP.

As far as I know that only works on directories though, not on individual files so it'll be less neat than it is on Linux where a 'generic' name without version info is symlinked to another name (often in the same directory) with version info.

Not true, it works with files and directories.