Jürgen Lerch
2009-04-05 17:11:44 UTC
Saluton!
In my continuing quest to write about a gazillion vapourware
roguelikes, I wrestled again with gm2 (version 0.68/gcc 4.1.2
(Debian etch)).
a) I had a procedure which took a (_non_-VAR) CARDINAL parameter.
Calling it with a SHORTCARD produced a parameter mismatch
compiler error. I since changed all SHORTCARDs to CARDINALs,
which made the problem disappear, but I consider this a
suboptimal solution in light of at least my idea of the
Modula-2 type system.
b) Now when I try to compile the program, the linker complains
about an undefined reference to a _M2_JuLANSI_finish in a
function ,,finish'' in some weird .cpp file in /tmp. What's
the problem?
Ad Astra!
JuL
In my continuing quest to write about a gazillion vapourware
roguelikes, I wrestled again with gm2 (version 0.68/gcc 4.1.2
(Debian etch)).
a) I had a procedure which took a (_non_-VAR) CARDINAL parameter.
Calling it with a SHORTCARD produced a parameter mismatch
compiler error. I since changed all SHORTCARDs to CARDINALs,
which made the problem disappear, but I consider this a
suboptimal solution in light of at least my idea of the
Modula-2 type system.
b) Now when I try to compile the program, the linker complains
about an undefined reference to a _M2_JuLANSI_finish in a
function ,,finish'' in some weird .cpp file in /tmp. What's
the problem?
Ad Astra!
JuL
--
***@gmx.de / Never anger a dragon, for you will be
Jürgen ,,JuL'' Lerch / crunchy and taste good with ketchup
***@gmx.de / Never anger a dragon, for you will be
Jürgen ,,JuL'' Lerch / crunchy and taste good with ketchup