error when building a program

I am creating a program in c++ that uses cURL.

I ran into this error and I need help figuring it out:

make: *** [test.exe] Error 1

I put some screenshots here so you can see.
http://www.pocourl.com/eclipse3.4.2/

Solution: error when building a program

Since EE does not allow to quickly edit a post yet, I will need to re-post this again since I made a small mistake in the instructions.


Eclipse on Windows XP or Ubuntu

-----------------------------

Windows XP:
Installed latest version of Java
Downloaded latest Eclipse Classic version 3.4.2
Added the CDT C/C++ development tools into Eclipse
Installed  Automated MinGW Installer (MinGW 5.1.4)
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780
GNU Source-Level Debugger
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=20507
File
http://gnuwin32.sourceforge.net/packages/file.htm
Coreutils
http://gnuwin32.sourceforge.net/packages/coreutils.htm
Tar
http://gnuwin32.sourceforge.net/packages/gtar.htm
Gzip
http://gnuwin32.sourceforge.net/packages/gzip.htm
Grep
http://gnuwin32.sourceforge.net/packages/grep.htm

After configuring Eclipse to use MinGW, these are the settings I configured next.

Go to: Project Properties -> C/C++ Build -> Settings -> Tool Settings

Go to: GCC C++ Compiler -> Directories
Include Paths (-I): "C:\Sources\curl-7.19.5-devel-mingw32\include"

Go to: MinGW C++ Linker -> Libraries
Libraries (-l): curl
Library search path (-L): "C:\Sources\curl-7.19.5-devel-mingw32\bin"


I then copied all the dll dependency files from C:\Sources\curl-7.19.5-devel-mingw32\bin
to my output Debug folder where the program gets finally compiled to.

libcurl.dll
libeay32.dll
libidn-11.dll
libssh2.dll
libssl32.dll
zlib1.dll

-----------------------------

Ubuntu Jaunty:
sudo apt-get install openjdk-6-jdk
Downloaded latest Eclipse Classic version 3.4.2
Added the CDT C/C++ development tools into Eclipse
sudo apt-get install curl
sudo apt-get install libcurl4-gnutls-dev

Go to: Project Properties -> C/C++ Build -> Settings -> Tool Settings

Go to: GCC C++ Linker -> Libraries
Libraries (-l): curl

All other Eclipse settings are default.

-----------------------------

Maybe I should use Microsoft Visual C++.