Author Topic: failed to compile wxWidgets projects....  (Read 6798 times)

dan

  • Guest
failed to compile wxWidgets projects....
« 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.

grv575

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #1 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.

dan

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #2 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?

grv575

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #3 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:










Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: failed to compile wxWidgets projects....
« Reply #4 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.

grv575

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #5 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.

takeshimiya

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #6 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.

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: failed to compile wxWidgets projects....
« Reply #7 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.

dan

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #8 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! ^^

takeshimiya

  • Guest
Re: failed to compile wxWidgets projects....
« Reply #9 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.