netbeans error help

Apr 27, 2012 at 12:50pm
hi guys i am in desperate need of help.

I am currently writing an AI disseration for uni. My experience with c++ and netbeans is limited and ive come accross a problem.

I have found a website that provides a base algorithm that i am going to use and modify as a comparison in my report. The website provides three files that make up a working connect four game. website address below.

http://www.pomakis.com/c4/connect_generic/

I am creating a new C application in netbeans and calling it c4. I then create a new header file called c4.h and copy in the code provided by the website.

I then create a new source file called c4.c, and copy in the code from the website.

I then create the main file, called game.c and copy the code from the website again.

I then run the file and get the follwoing error.

[i]build/Debug/MinGW-Windows/c4.o: file not recognized: File format not recognized
make[1]: Leaving directory `/c/Users/OEM/Documents/NetBeansProjects/c4'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/c4.exe] Error 1
make[1]: *** [.build-conf] Error 2


From what i know, c4.o is an object file?

Im not really sure, I just need to gteh this file working asap for my work.

Any help will be greatly appreciated.
make: *** [.build-impl] Error 2[/i]
Topic archived. No new replies allowed.