I have 4 .c
files, one called main.c
with main()
but I get a linking error "undefined symbol _main in module c0.ASM." I am using TC.
I've searched on this site and the web, and found things like:
undefined symbol for architecture x86_64 in compiling C program
undefined symbol _main in module c0.ASM
but all of them seem to be gcc or c++ errors. The files are too large to paste here so I've uploaded them to mediafire.
#include <stdio.h>
#include <string.h>
#include "mpx.h"
int main()
{
return 0;
}
If I take out #include "MPX.H," I lose access to all shared variables defined in mpx.h, but if I get rid of all those too, program runs as it should (prints a statement and returns 1.
mpx.h:
http://www.mediafire.com/view/2pcxhwy9rwk9lls/MPX.H
compiler options: treat enums as ints, floating point emulation, generate underbars, debug info in objs, fast floating point
linker options: defalut libraries, "no stack" warning, case sensitive link, output - standard EXE