User forums > Help

MingW: error: to few arguments to function 'void exit(1);

<< < (2/2)

stahta01:

--- Quote from: laserbeak43 on August 17, 2007, 08:58:16 am ---maybe it's cause i haven't cleaned the project before i re rean it... cause i use exit(1)

nope... no luck...

could it be because the code that i'm writting is C in a C++ project? wouldn't codblocks pick this up and use the necessary compiler?

--- End quote ---

Code::Blocks using MinGW GCC decides based on file extension. Is the file extension .c or .cpp?

Tim S

laserbeak43:

--- Quote from: stahta01 on August 18, 2007, 09:28:10 pm ---
--- Quote from: laserbeak43 on August 17, 2007, 08:58:16 am ---maybe it's cause i haven't cleaned the project before i re rean it... cause i use exit(1)

nope... no luck...

could it be because the code that i'm writting is C in a C++ project? wouldn't codblocks pick this up and use the necessary compiler?

--- End quote ---

Code::Blocks using MinGW GCC decides based on file extension. Is the file extension .c or .cpp?

Tim S

--- End quote ---

yeah i made a .cpp file to follow the book that i'm reading. it's funny cause the book tells me i need to know c++. i'll change it and see w hat happens.

in the advanced properties section, i changed the compiler options to C instead of CPP and it built itself so far. no i just gotta figure out what looks to be like a linker error to confirm it's working.

Navigation

[0] Message Index

[*] Previous page

Go to full version