Home
.. Links
.. Search
.. Plugins
.. Help
.. Irc Faq

Projects
.. Platform/Faq
.. JDT/Faq/Plan
.. PDE/Faq
.. SWT/Faq
.. RCP/Faq

Tools Projects
.. CDT/Faq
.. GEF/Faq
.. EMF/Faq

Wiki Tutorials

Hosted Projects
.. MTJ
.. Google Summer Of Code 2007
.. Update Manager 2.0
.. EasyEclipse
.. Stylebase for Eclipse

Archives

CreateAProject


Information regarding creating, building and debugging a project in the CDT can be found in the Eclipse CDT "User's FAQ

if you create the "Hello World on a Windows Platform" Project described there you have to be sure that cygwin1.dll is in your System path (it's in .../cygwin/bin)

here is the makefile that works for me. Remember the TABULATORs in the makefile! (Dirk Hoffmann)...
objects = hello.o

LIB_DIR = C:\Programme\cygwin\lib\gcc-lib\i686-pc-cygwin\3.2
GCC = gcc

COMPILE_OPTS =
#COMPILE_OPTS = -Wno-deprecated

hello : $(objects)
$(GCC) -o hello $(objects) -L $(LIB_DIR) -lstdc++

$(objects) : hello.cpp
$(GCC) -c hello.cpp $(COMPILE_OPTS)

all : hello

.PHONY : clean
clean :
rm -f hello.exe $(objects)
and the hello.cpp file that works for me (without warnings)...
#include <iostream>
#include <stdlib.h>

int main()
{
char buff[128];

std::cout << "Hello World!
";
std::cin >> buff;
return (0);
}

Last Modified 6/21/06 10:21 AM

Hide Tools