Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » build problem
build problem [message #89232] Sun, 14 December 2003 03:12 Go to next message
Eclipse UserFriend
Originally posted by: pcwl112.sina.com

i installed eclipse3.0 M5 and cygwin,and set environment path =
D:\cygwin\bin,
then create simple project HelloWorld(use Stardan Make c++ project) below:
main.cpp:
#include <iostream>

using namespace std;

int main(int argc,char* argv[])
{
cout << "hello world" << endl;
return 0;
}
makefile:
all: hello.exe

clean:
rm main.o

hello.exe: main.o
g++ -g -o hello main.o

main.o:
g++ -c -g main.cpp
click build accur occur error:
[hello.exe] Error 1 HelloWorld
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cy gwin/bin/ld
cannot find -luser32
i don't find "lib" directory under D:\cygwin\usr;
how to solve it?thanks
Re: build problem [message #89513 is a reply to message #89232] Mon, 15 December 2003 11:36 Go to previous message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

pcwl wrote:

> i installed eclipse3.0 M5 and cygwin,and set environment path =
> D:cygwinbin,
> then create simple project HelloWorld(use Stardan Make c++ project) below:
> main.cpp:
> #include <iostream>

> using namespace std;

> int main(int argc,char* argv[])
> {
> cout << "hello world" << endl;
> return 0;
> }
> makefile:
> all: hello.exe

> clean:
> rm main.o

> hello.exe: main.o
> g++ -g -o hello main.o

> main.o:
> g++ -c -g main.cpp
> click build accur occur error:
> [hello.exe] Error 1 HelloWorld
> /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cy gwin/bin/ld
> cannot find -luser32
> i don't find "lib" directory under D:cygwinusr;
> how to solve it?thanks


Is it working when you are outside of eclipse ?
meaning run the make under a cmd.exe.
My best guess, the paths are not set correctly or you may
missing some files in the intallation.
Previous Topic:persisting make targets
Next Topic:Cannot save a file after merge using C Compare
Goto Forum:
  


Current Time: Fri May 09 20:57:44 EDT 2025

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

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

Back to the top