luser-dr00g / xpost

A PostScript interpreter in C
Other
93 stars 12 forks source link

unit tests do not compile on Windows #38

Closed vtorri closed 8 years ago

vtorri commented 8 years ago

Make check on Windows leads to undefined symbols. Reason : memory and stack functions are not exported.

One possible solution : correctly define XPCHECKAPI in xpost_private.h:

ifdef HAVE_CHECK

define XPCHECKAPI XPAPI

else

define XPCHECKAPI

endif

and declare/define functions used in unit tests with XPCHECKAPI

remarks ?

luser-dr00g commented 8 years ago

Ok. Does that handle the linking too? or just prototyping?

vtorri commented 8 years ago

linking too. Actually, the problem was linking

vtorri commented 8 years ago

Fixed in 76966b138fe9b4262da8b59db51c09dc1f6bea26 (with also previous commits)