I realize that nobody seems to use Open Watcom's C/C++ compiler but it's the only precompiled C compiler for Windows which compiles code to Linux (I tried building GCC in every way imaginable without success). I've successfully built a few hello world programs without much trouble. However, with a bigger (10,000 line project), I end up with a ton of linking errors.
I am using Code::Blocks 8.02 with Open Watcom 1.8:
Linking dynamic library: ..\bin\libci.so
Error! E2028: __CHK is an undefined reference
Error! E2028: strcmp_ is an undefined reference
Error! E2028: strlen_ is an undefined reference
Error! E2028: strstr_ is an undefined reference
Error! E2028: strchr_ is an undefined reference
Error! E2028: memcpy_ is an undefined reference
Error! E2028: fread_ is an undefined reference
Error! E2028: __get_errno_ptr_ is an undefined reference
Error! E2028: strerror_ is an undefined reference
Error! E2028: ___iob is an undefined reference
Error! E2028: fopen_ is an undefined reference
Error! E2028: fgetc_ is an undefined reference
Error! E2028: freopen_ is an undefined reference
Error! E2028: ungetc_ is an undefined reference
Error! E2028: fclose_ is an undefined reference
Error! E2028: realloc_ is an undefined reference
Error! E2028: free_ is an undefined reference
Error! E2028: fprintf_ is an undefined reference
Error! E2028: _fltused_ is an undefined reference
Error! E2028: __8087 is an undefined reference
Error! E2028: rand_ is an undefined reference
Error! E2028: srand_ is an undefined reference
Error! E2028: __HugeValue is an undefined reference
Error! E2028: abs_ is an undefined reference
Error! E2028: fputs_ is an undefined reference
Error! E2028: fgets_ is an undefined reference
Error! E2028: longjmp_ is an undefined reference
Error! E2028: exit_ is an undefined reference
Error! E2028: _setjmp_ is an undefined reference
Error! E2028: tmpfile_ is an undefined reference
Error! E2028: fscanf_ is an undefined reference
Error! E2028: fwrite_ is an undefined reference
Error! E2028: fseek_ is an undefined reference
Error! E2028: ftell_ is an undefined reference
Error! E2028: setvbuf_ is an undefined reference
Error! E2028: fflush_ is an undefined reference
Error! E2028: __IsTable is an undefined reference
Error! E2028: localeconv_ is an undefined reference
Error! E2028: tolower_ is an undefined reference
Error! E2028: strrchr_ is an undefined reference
Error! E2028: getenv_ is an undefined reference
Error! E2028: strtoul_ is an undefined reference
Error! E2028: sprintf_ is an undefined reference
Error! E2028: strncpy_ is an undefined reference
Error! E2028: strcpy_ is an undefined reference
Error! E2028: strcat_ is an undefined reference
Error! E2028: strcspn_ is an undefined reference
Error! E2028: strncat_ is an undefined reference
Error! E2028: system_ is an undefined reference
Error! E2028: remove_ is an undefined reference
Error! E2028: rename_ is an undefined reference
Error! E2028: tmpnam_ is an undefined reference
Error! E2028: clock_ is an undefined reference
Error! E2028: time_ is an undefined reference
Error! E2028: gmtime_ is an undefined reference
Error! E2028: localtime_ is an undefined reference
Error! E2028: strftime_ is an undefined reference
Error! E2028: mktime_ is an undefined reference
Error! E2028: setlocale_ is an undefined reference
Error! E2028: memcmp_ is an undefined reference
Error! E2028: toupper_ is an undefined reference
Error! E2028: memchr_ is an undefined reference
Error! E2028: strpbrk_ is an undefined reference
Error! E2028: strcoll_ is an undefined reference
Error! E2028: fputc_ is an undefined reference
Error! E2028: printf_ is an undefined reference
Error! E2028: __chipbug is an undefined reference
Error! E2028: __fptan_chk is an undefined reference
Error! E2028: __fdiv_fpr is an undefined reference
Error! E2028: __fpatan_wrap is an undefined reference
Error! E2028: __fprem_chk is an undefined reference
Error! E2028: __set_ERANGE_ is an undefined reference
Error! E2028: __ZBuf2LD is an undefined reference
Error! E2028: memset_ is an undefined reference
Error! E2028: __get_std_stream_ is an undefined reference
Error! E2028: __set_EDOM_ is an undefined reference
Warning! W1023: no starting address found, using 00000000
Error! E2044: exported symbol __CHK not found
Error! E2044: exported symbol strcmp_ not found
Error! E2044: exported symbol strlen_ not found
Error! E2044: exported symbol strstr_ not found
Error! E2044: exported symbol strchr_ not found
Error! E2044: exported symbol memcpy_ not found
Error! E2044: exported symbol fread_ not found
Error! E2044: exported symbol __get_errno_ptr_ not found
Error! E2044: exported symbol strerror_ not found
Error! E2044: exported symbol ___iob not found
Error! E2044: exported symbol fopen_ not found
Error! E2044: exported symbol fgetc_ not found
Error! E2044: exported symbol freopen_ not found
Error! E2044: exported symbol ungetc_ not found
Error! E2044: exported symbol fclose_ not found
Error! E2044: exported symbol realloc_ not found
Error! E2044: exported symbol free_ not found
Error! E2044: exported symbol fprintf_ not found
Error! E2044: exported symbol _fltused_ not found
Error! E2044: exported symbol __8087 not found
Error! E2044: exported symbol rand_ not found
Error! E2044: exported symbol srand_ not found
Error! E2044: exported symbol __HugeValue not found
Error! E2044: exported symbol abs_ not found
Error! E2044: exported symbol fputs_ not found
Error! E2044: exported symbol fgets_ not found
Error! E2044: exported symbol longjmp_ not found
Error! E2044: exported symbol exit_ not found
Error! E2044: exported symbol _setjmp_ not found
Error! E2044: exported symbol tmpfile_ not found
Error! E2044: exported symbol fscanf_ not found
Error! E2044: exported symbol fwrite_ not found
Error! E2044: exported symbol fseek_ not found
Error! E2044: exported symbol ftell_ not found
Error! E2044: exported symbol setvbuf_ not found
Error! E2044: exported symbol fflush_ not found
Error! E2044: exported symbol __IsTable not found
Error! E2044: exported symbol localeconv_ not found
Error! E2044: exported symbol tolower_ not found
Error! E2044: exported symbol strrchr_ not found
Error! E2044: exported symbol getenv_ not found
Error! E2044: exported symbol strtoul_ not found
Error! E2044: exported symbol sprintf_ not found
Error! E2044: exported symbol strncpy_ not found
Error! E2044: exported symbol strcpy_ not found
Error! E2044: exported symbol strcat_ not found
Error! E2044: exported symbol strcspn_ not found
Error! E2044: exported symbol strncat_ not found
Error! E2044: exported symbol system_ not found
Error! E2044: exported symbol remove_ not found
Error! E2044: exported symbol rename_ not found
Error! E2044: exported symbol tmpnam_ not found
Error! E2044: exported symbol clock_ not found
Error! E2044: exported symbol time_ not found
Error! E2044: exported symbol gmtime_ not found
Error! E2044: exported symbol localtime_ not found
Error! E2044: exported symbol strftime_ not found
Error! E2044: exported symbol mktime_ not found
Error! E2044: exported symbol setlocale_ not found
Error! E2044: exported symbol memcmp_ not found
Error! E2044: exported symbol toupper_ not found
Error! E2044: exported symbol memchr_ not found
Error! E2044: exported symbol strpbrk_ not found
Error! E2044: exported symbol strcoll_ not found
Error! E2044: exported symbol fputc_ not found
Error! E2044: exported symbol printf_ not found
Error! E2044: exported symbol __chipbug not found
Error! E2044: exported symbol __fptan_chk not found
Error! E2044: exported symbol __fdiv_fpr not found
Error! E2044: exported symbol __fpatan_wrap not found
Error! E2044: exported symbol __fprem_chk not found
Error! E2044: exported symbol __set_ERANGE_ not found
Error! E2044: exported symbol __ZBuf2LD not found
Error! E2044: exported symbol memset_ not found
Error! E2044: exported symbol __get_std_stream_ not found
Error! E2044: exported symbol __set_EDOM_ not found
I currently have one of two explanations on this: either Open Watcom does not support creating .so libraries or I'm not linking a library that I should. Everything in its set of libraries is new to me besides what's in the Windows library set. Note that this builds without incident in GCC 4.4.0 for Windows.