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.
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]