Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Cross compiling windows applications from linux with mingw32
Cross compiling windows applications from linux with mingw32 [message #22977] Fri, 04 September 2009 02:12 Go to next message
marroyo is currently offline  marroyo
Messages: 8
Registered: August 2009
Location: Argentina
Promising Member
Hi, I'm trying compile a small console application using sockets.
I've defined a new build method saying that should use mingw32 cross-compiler in linux. I got compile source files but linker fails. Linker error is:

/home/marcelo/upp.out/Web/MINGW32.Gcc.Shared.Win32/Web.a: could not read symbols: Archive has no index; run ranlib to add one

Any help?
Re: Cross compiling windows applications from linux with mingw32 [message #23002 is a reply to message #22977] Sat, 05 September 2009 16:28 Go to previous message
marroyo is currently offline  marroyo
Messages: 8
Registered: August 2009
Location: Argentina
Promising Member
I've succefully compiled my program cross-compiling on Linux with mingw32.

The problem was TheIDE try to link with pthread and ld libraries, which doesn't exist in the mingw32 environment.
When I link it by hand (without -lpthread -lld) it works.

I'm using Gcc builder method and choose i586-mingw32msvc-g++ as compiler. Of course I set the corresponding paths (binaries, include and libs).

¿Can I modify list of libraries to link in a build method?

Thanks
Previous Topic: Can't link the project if package contains no any cpp/c files
Next Topic: package organizer add/remove flags
Goto Forum:
  


Current Time: Thu Apr 18 04:27:23 CEST 2024

Total time taken to generate the page: 0.01229 seconds