[fpc-pascal] Problem compiling DLL for 64Bit Windows - complete	example attached
    Lukas Gradl 
    fpc at ssn.at
       
    Fri Dec 18 14:12:05 CET 2009
    
    
  
Jonas Maebe schrieb:
> 
> You must never use a "packed" record for a C record, unless it is 
> declared in C using __attribute__((__packed__)). The fact that it worked 
> in 32 bit was pure coincidence. You also have to add {$packrecords c} to 
> your source file to tell the compiler to lay out records the same way as 
> C compilers to guarantee interoperability.
Jonas, Marc, if you ever come near my place feel free to come along for 
a beer or something...
Never heard of the $packrecords switch, but that was it - now it works 
for 32 and 64 bits...
regards
Lukas
-- 
--------------------------
software security networks
Lukas Gradl <fpc#ssn.at>
Eduard-Bodem-Gasse 5
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--------------------------
    
    
More information about the fpc-pascal
mailing list