Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java Error in Eclipse C++?

Name: Anonymous 2007-10-09 9:58

what the fucking shit

eclipse is probably the greatest IDE. But at the same time it is probably the most frustrating to initially set up.

When I was taking Java classes, I used eclipse for my programs. Now that I'm doing C++, I was originally using Dev-C++, but I realized I missed a lot of the editor features, like syntax underlining (if something is incorrect), auto-closing braces, and an auto-indent that doesn't suck (as great as DevCPP is, its auto-indent is retarded). So I decided to check out eclipse's C++ platform (CDT).

After jumping through hoops to get the seperate MingW toolchain and all that sort of shit installed and set up just so that eclipse will BUILD my project, i'm getting what is perhaps the most retarded error in existance:

java.lang.NullPointerException

..in a C++ program. What?

I know eclipse is MADE from Java, but what's going on? I used eclipse's project wizard to have it automatically generate a simple "Hello World!" program for me, and it worked great. But if I try to build a clean project from scratch, I get this bullshit.

I can't find any documentation about this issue. What does /prog/ think?

Name: Anonymous 2007-10-09 10:54

eclipse requires you to manually create a make file for it to be able to build a c++ project.

add a new file to your project called "makefile" (no extension)

If your project is a "Hello World!" program, for example, the makefile should look something like this:

all: hello.exe

clean:
    rm main.o hello.exe

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

main.o:
    g++ -c -g main.cpp


yes, it's gay.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List