Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Building Error with gcc...
Building Error with gcc... [message #59805] Mon, 27 January 2003 04:51 Go to next message
Eclipse UserFriend
Originally posted by: inom1976.hotmail.com

I used Eclipse a bit and found it's very nice IDE.
However I faced a problem while building my simple "Hello, World!" program.
My error message was like the following:
**/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cy gwin/bin/ld:
cannot find -luser32
collect2: ld returned 1 exit status**

I guess the main reason might be gcc which has wrong pathname between
cygwin and actual Windows.Thus gcc cannot find any required library and
files.
Does anyone know this problem? If yes, I really appreciate your help in
advance.

thanks!!!
Re: Building Error with gcc... [message #59831 is a reply to message #59805] Mon, 27 January 2003 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: f.frumento.sciro.com

I'm using cygwin with eclipse and other tools from mentor graphics...
they wotk fine

I think your problen id because You're using an absolute path... You
should specify only relative paths...

try to post your makefile

MS.Choi ha scritto:
> I used Eclipse a bit and found it's very nice IDE.
> However I faced a problem while building my simple "Hello, World!" program.
> My error message was like the following:
> **/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cy gwin/bin/ld:
> cannot find -luser32
> collect2: ld returned 1 exit status**
>
> I guess the main reason might be gcc which has wrong pathname between
> cygwin and actual Windows.Thus gcc cannot find any required library and
> files.
> Does anyone know this problem? If yes, I really appreciate your help in
> advance.
>
> thanks!!!
>
>
>
>
Re: Building Error with gcc... [message #59855 is a reply to message #59805] Mon, 27 January 2003 18:37 Go to previous message
Eclipse UserFriend
Originally posted by: tknaps.broadpark.no

MS.Choi wrote:
> I used Eclipse a bit and found it's very nice IDE.
> However I faced a problem while building my simple "Hello, World!" program.
> My error message was like the following:
> **/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cy gwin/bin/ld:
> cannot find -luser32
> collect2: ld returned 1 exit status**
>
> I guess the main reason might be gcc which has wrong pathname between
> cygwin and actual Windows.Thus gcc cannot find any required library and
> files.
> Does anyone know this problem? If yes, I really appreciate your help in
> advance.
>

-luser32 means that you want to link to user32.dll. Is this DLL
available on your system?
If so, tell gcc where by using the -L flag (i.e.
-L/my/user32/dll/file/is/here)

T
Previous Topic:Using environment variables
Next Topic:Memory in Debugger
Goto Forum:
  


Current Time: Mon Feb 10 22:18:02 GMT 2025

Powered by FUDForum. Page generated in 0.03725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top