Code::Blocks Forums

User forums => Help => Topic started by: dan on August 13, 2005, 03:03:09 am

Title: failed to compile wxWidgets projects....
Post by: dan on August 13, 2005, 03:03:09 am
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.
Title: Re: failed to compile wxWidgets projects....
Post by: grv575 on August 13, 2005, 03:29:08 am
Could you give more information?  What steps did you go through, which compiler are you using (gcc, ?), etc.
Title: Re: failed to compile wxWidgets projects....
Post by: dan on August 13, 2005, 06:53:16 am
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?
Title: Re: failed to compile wxWidgets projects....
Post by: grv575 on August 13, 2005, 08:21:17 am
I'm assuming that you compiled wxWidgets successfully using mingw.  Check your project setting against these.  Then click rebuild:

(http://www.geocities.com/grv575/wxg0.jpg)
(http://www.geocities.com/grv575/wxg1.jpg)
(http://www.geocities.com/grv575/wxg2.jpg)
(http://www.geocities.com/grv575/wxg3.jpg)
(http://www.geocities.com/grv575/wxg4.jpg)
(http://www.geocities.com/grv575/wxg5.jpg)
(http://www.geocities.com/grv575/wxg6.jpg)
(http://www.geocities.com/grv575/wxg7.jpg)
Title: Re: failed to compile wxWidgets projects....
Post by: tiwag on August 13, 2005, 08:36:12 am
the "link library" has to be adjusted according to the used wxWidgets version to "wxmsw26" in standard wxWidgets builds.
Title: Re: failed to compile wxWidgets projects....
Post by: 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.
Title: Re: failed to compile wxWidgets projects....
Post by: takeshimiya on August 13, 2005, 06:15:21 pm
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.
Title: Re: failed to compile wxWidgets projects....
Post by: Urxae on August 13, 2005, 08:32:35 pm
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.
Title: Re: failed to compile wxWidgets projects....
Post by: dan on August 14, 2005, 10:32:31 am
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! ^^
Title: Re: failed to compile wxWidgets projects....
Post by: takeshimiya on November 14, 2005, 04:05:16 pm
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.