On 20/06/15 14:20, Bo Berglund wrote:
On Sat, 20 Jun 2015 12:51:35 +0300, patspiper <[email protected]>
wrote:
On 20/06/15 11:38, Bo Berglund wrote:
On Fri, 19 Jun 2015 23:01:36 +0200, Marc Weustink
<[email protected]> wrote:
Thanks very much! This seems to be the way to go!
By creating a coff file from the obj file while aliasing the functions
to the long format found in the error messages and using the resulting
coff file in the include statement ALL errors concerning the SPROMEPS
functions disappeared!
Care to share the aliasing details?
I made a batch file with a command like this:
objconv -nu -fcoff @params.txt SPROMEPS.obj SPROMEPS.coff
All arguments are in the params.txt file like this:
-ar:RNBOsproFormatPacket:SPROMEPS_RNBOSPROFORMATPACKET$RB_SPRO_APIPACKET_PTR$WORD$$WORD
-ar:RNBOsproInitialize:SPROMEPS_RNBOSPROINITIALIZE$RB_SPRO_APIPACKET_PTR$$WORD
-ar:RNBOsproGetFullStatus:SPROMEPS_RNBOSPROGETFULLSTATUS$RB_SPRO_APIPACKET_PTR$$WORD
-ar:RNBOsproGetVersion:SPROMEPS_RNBOSPROGETVERSION$RB_SPRO_APIPACKET_PTR$POINTER$POINTER$POINTER$POINTER$$WORD
-ar:RNBOsproFindFirstUnit:SPROMEPS_RNBOSPROFINDFIRSTUNIT$RB_SPRO_APIPACKET_PTR$WORD$$WORD
-ar:RNBOsproFindNextUnit:SPROMEPS_RNBOSPROFINDNEXTUNIT$RB_SPRO_APIPACKET_PTR$$WORD
-ar:RNBOsproRead:SPROMEPS_RNBOSPROREAD$RB_SPRO_APIPACKET_PTR$WORD$POINTER$$WORD
-ar:RNBOsproExtendedRead:SPROMEPS_RNBOSPROEXTENDEDREAD$RB_SPRO_APIPACKET_PTR$WORD$POINTER$POINTER$$WORD
-ar:RNBOsproWrite:SPROMEPS_RNBOSPROWRITE$RB_SPRO_APIPACKET_PTR$WORD$WORD$WORD$BYTE$$WORD
-ar:RNBOsproOverwrite:SPROMEPS_RNBOSPROOVERWRITE$RB_SPRO_APIPACKET_PTR$WORD$WORD$WORD$WORD$WORD$BYTE$$WORD
-ar:RNBOsproDecrement:SPROMEPS_RNBOSPRODECREMENT$RB_SPRO_APIPACKET_PTR$WORD$WORD$$WORD
-ar:RNBOsproActivate:SPROMEPS_RNBOSPROACTIVATE$RB_SPRO_APIPACKET_PTR$WORD$WORD$WORD$WORD$$WORD
-ar:RNBOsproQuery:SPROMEPS_RNBOSPROQUERY$RB_SPRO_APIPACKET_PTR$WORD$POINTER$POINTER$POINTER$WORD$$WORD
Exactly what I had figured out.
This is what i saw while running the batch file:
objconv -nu -fcoff @params.txt SPROMEPS.obj SPROMEPS.coff
Input file: SPROMEPS.obj, output file: SPROMEPS.coff
Converting from OMF32 to COFF32
Not adding or removing underscores for this filetype
Warning 1211: 270 comment records ignored
0 Debug sections removed
0 Exception sections removed
13 Symbol names changed
13 Public symbol names aliased
What's line 23 of DongleTest.lpr?
That is the closing line of the main lpr file:
end.
So it is probably something that is not really in my code...
SPROMEPS.OBJ calls these functions. I am not sure how to command the
linker to treat them accordingly.
Stephano
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus