Login
New reply in Original Beats of Rage Source Code
Name:
Homepage:
[quote userid="14" name="Roel"]Well that's a difficult question, because it was 20 years ago for me too! n_n' I tried to find the commands I used back in those days. I didn't find the exact ones, but here are some lines I found in a batch file from around the same time: [code] for %%i in (*.c) do wcc386 -i=%WATCOM%\h -fp5 -5r -bt=dos32a -wx -we -ox -dDOS -dDEVBUILD %%i :: move all except main.obj into the object/ directory for %%i in (*.OBJ) do if not %%i==MAIN.OBJ move /Y %%i object wlink system dos32a file main,object\*.obj SS main.exe d32cfg.d32 [/code] I forgot the exact mechanism, but I vaguely remember that compilers add underscores and other tokens to distinguish functions with the same names but different argument lists. This is a C++ feature, so it should not affect C code. Perhaps the compiler is interpreting the code as C++ for some reason. You can check if you're dealing with a C++ compiler by putting this somewhere in the code: [code] #ifdef __cplusplus #error "You are compiling in C++ mode" #endif [/code] To force C++ compilers to use the C naming standard, you can put these lines in your header files around the exported function prototypes. [code] #ifdef __cplusplus extern "C" { #endif // Function prototypes... #ifdef __cplusplus } #endif [/code] It should then be possible to link the files into an executable. I haven't tested the things I wrote here, so apologies if I made any mistakes. 20 years is a long time. n_n'[/quote]
Happy
:)
;)
^_^
:haha:
:laugh:
(:
*_*
:proud:
:P
:XP:
;P
*^_^*
>:)
o)
^-^
Grinning
:D
:grin:
;D
>:D
:DD
XD
X'D
Sad
:(
:c
:s
*O_O*
._.
u_u
;_;
Misc
n_n'
u_u'
^O^
:/
:\
:|
:o
:solemn:
:really:
:frown2:
:frown3:
:hm:
:whatever:
^_^;
-_-
>_>
<_<
>.<
>_<;
>_<
?_?
O_O
>_O
D=
Small
:.
T_T
D:
:aaah:
:'(
:angry:
:baah:
=_=
:scared:
o_O
X_X
:puke:
:3
;3
:X3:
:q
O_O;
:y
B)
'_'
:{
Animated
:rofl:
:))
:((
!))
!((
:@:
Nonsense
[:)]
[:(]
:o)
:dance:
:toejam:
:earl:
Pictures
:!:
+_+
}|{
=:x
:evil:
:music:
*~O
:turd:
[O]
o0O
<3
:ducky:
:iron:
:cookie:
:cake:
:r:
8<
:m1:
:m2:
:m3:
:egg:
:egg2:
:d:
:pacman:
Icons
((?))
((!))
:v:
:dc:
Special Moves
:A:
:B:
:C:
:D:
:P:
:K:
:J:
:S:
:up:
:upright:
:right:
:downright:
:down:
:downleft:
:left:
:upleft:
:qcf:
:dp:
:hcf
:qcb:
:dpb:
:hcb:
Dev Log
Games
About
Forum
Shop