Lostgallifreyan
2012-02-13 10:39:02 UTC
I recently started using TCC again, first time in over a year. I got a couple of small power-saving programs working (monitor and disk motor shutdown), then got ambitious and have fallen flat....
To use MIDI I need to link libwinmm.a from the GCC compiler (or winmm.lib from VC++). No matter what I try (having Googled for two days), I get the same errors every time, undefined symbols. Can TCC link these files at all, and if so, exactly how do I do it? (Using W98 SE).
My last effort:
@ECHO OFF
PATH=%PATH%;E:\CODING\TCC
TCC.EXE C:\WINDOWS\DESKTOP\TEST\MIDI.c -LE:\Coding\tcc\lib\libwinmm.a -oC:\WINDOWS\DESKTOP\TEST\MIDI.exe
The C code was found online, as far as I know, all I had to do was add a line to it as follows, just after any include lines.
#pragma comment(lib,"libwinmm.a")
Results:
tcc: undefined symbol '***@12'
tcc: undefined symbol '***@20'
tcc: undefined symbol '***@8'
tcc: undefined symbol '***@4'
To use MIDI I need to link libwinmm.a from the GCC compiler (or winmm.lib from VC++). No matter what I try (having Googled for two days), I get the same errors every time, undefined symbols. Can TCC link these files at all, and if so, exactly how do I do it? (Using W98 SE).
My last effort:
@ECHO OFF
PATH=%PATH%;E:\CODING\TCC
TCC.EXE C:\WINDOWS\DESKTOP\TEST\MIDI.c -LE:\Coding\tcc\lib\libwinmm.a -oC:\WINDOWS\DESKTOP\TEST\MIDI.exe
The C code was found online, as far as I know, all I had to do was add a line to it as follows, just after any include lines.
#pragma comment(lib,"libwinmm.a")
Results:
tcc: undefined symbol '***@12'
tcc: undefined symbol '***@20'
tcc: undefined symbol '***@8'
tcc: undefined symbol '***@4'