[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [Bulk] How to link...? (Restated, with full code thi
Re: [Tinycc-devel] [Bulk] How to link...? (Restated, with full code this time)
Tue, 14 Feb 2012 17:42:56 -0000
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR
DOS Batch file:
TCC.EXE C:\WINDOWS\DESKTOP\TEST\TEST2.c -LE:\Coding\tcc\lib\libwinmm.a
This fails with undefined-symbol errors, even though libwinmm.a is provided,
copied from GCC. Why? GCC will link libwinmm.a and compile this code, and it
Also, is that #pragma line needed? GCC doesn't need it, but plenty of coders
seem to think it's required.
Please help. I really want to use TCC for this as first choice, as I like it
best out of all compilers I have tried.