lists.zerezo.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** [Mingw-users] trouble converting a MSVC lib



Hello everybody,
I've read the tutorials that explain how to do this but I'm stuck now.
Basically I've got 3 files, and no source:
NPRigidBody.dll
NPRigidBody.h
NPRigidBody.lib

I copied these into an empty folder then opened up a prompt and ran:

pexports NPRigidBody.dll | sed "s/^_//" > NPRigidBody.def

I've attached the def file.

then I ran:
dlltool -U -d NPRigidBody.def -l libNPRigidBody.a

Copied the .a file into the mingw lib folder and added -lNPRigidBody
to the link flags.
I got this link error:
Application.o:Application.cc:(.text+0x18c9): undefined reference to
`_imp___Z22RB_InitializeRigidBodyv'
Application.o:Application.cc:(.text+0x1b09): undefined reference to
`_imp___Z22RB_InitializeRigidBodyv'

So then I edited the .def file so that the line
RB_InitializeRigidBod
became
_imp___Z22RB_InitializeRigidBodyv

then ran
dlltool -U -d NPRigidBody.def -l libNPRigidBody.a
and
dlltool -U -d NPRigidBody.def -l libNPRigidBody.a -k

and tried both those output files. The program linked, but at runtime I get:
"The procedure entry point _imp__Z22RB_InitializeRigidBodyv could not
be located in the dynamic link library NPRigidBody.dll"

Thanks for reading, any help is greatly appreciated.

Chris.
LIBRARY NPRigidBody.dll
EXPORTS
??0NatNetServer@@QAE@XZ
??1NatNetServer@@QAE@XZ
??4NatNetHelper@@QAEAAV0@ABV0@@Z
??4NatNetServer@@QAEAAV0@ABV0@@Z
?Broadcast@NatNetHelper@@SAHIGPADH@Z
?BuildPacket_FrameOfMocapData@NatNetServer@@QAEHPAUsFrameOfMocapData@@PAUsPacket@@@Z
?BuildPacket_MocapModelDefintions@NatNetServer@@QAEHPAUsMocapModels@@PAUsPacket@@@Z
?CB_ErrorMsgHandler@NatNetHelper@@0P6AXHPAD@ZA DATA
?ConvertToIPAddress@NatNetHelper@@SAHPADPAUin_addr@@@Z
?CreateForBroadcasting@NatNetHelper@@SAIKG@Z
?CreateLargeMultiCast@NatNetHelper@@SAIUin_addr@@H0@Z
?FreeFrame@NatNetHelper@@SAHPAUsFrameOfMocapData@@@Z
?GetIPs@NatNetHelper@@SAHPAKH@Z
?GetLocalAddresses@NatNetHelper@@SAHQAKH@Z
?GetSocketError@NatNetHelper@@SAXHPAD@Z
?IPAddress_LongToString@NatNetHelper@@SAHKPAD@Z
?IPAddress_StringToLong@NatNetHelper@@SAHPADPAK@Z
?Initialize@NatNetServer@@QAEHPAD@Z
?Initialize@NatNetServer@@QAEHPADG@Z
?InitializeWinsock@NatNetHelper@@SAHXZ
?NP_CameraCount@@YAHXZ
?NP_CameraOrientationMatrix@@YAMHH@Z
?NP_CameraXLocation@@YAMH@Z
?NP_CameraYLocation@@YAMH@Z
?NP_CameraZLocation@@YAMH@Z
?NP_FrameMarkerCount@@YAHXZ
?NP_FrameMarkerX@@YAMH@Z
?NP_FrameMarkerY@@YAMH@Z
?NP_FrameMarkerZ@@YAMH@Z
?NP_GetLatestFrame@@YAHXZ
?NP_GetMaximumRayLength@@YAMXZ
?NP_GetMaximumResidual@@YAMXZ
?NP_GetMinimumAngle@@YAMXZ
?NP_GetMinimumRayCount@@YAHXZ
?NP_GetMinimumRayLength@@YAMXZ
?NP_GetNextFrame@@YAHXZ
?NP_GetResultString@@YAPBDH@Z
?NP_GetSynchronizationQuality@@YAHXZ
?NP_GetTriangulationTime@@YANXZ
?NP_InitializePointCloud@@YAHXZ
?NP_LoadProfile@@YAHPBD@Z
?NP_SetMaximumRayLength@@YAXM@Z
?NP_SetMaximumResidual@@YAXM@Z
?NP_SetMinimumAngle@@YAXM@Z
?NP_SetMinimumRayCount@@YAXH@Z
?NP_SetMinimumRayLength@@YAXM@Z
?NP_ShutdownPointCloud@@YAHXZ
?NP_Start@@YAHXZ
?NP_Stop@@YAHXZ
?NatNetVersion@NatNetHelper@@SAHQAE@Z
?ProcessSocketError@NatNetHelper@@SAHXZ
?SendPacket@NatNetServer@@QAEHPAUsPacket@@@Z
?SendToAddress@NatNetHelper@@SAHIGUin_addr@@PADH@Z
?SetErrorMsgHandlerFunc@NatNetHelper@@SAHP6AXHPAD@Z@Z
?SetRequestHandlerFunc@NatNetServer@@QAEHP6AHPAUsPacket@@0@Z@Z
?TraceMessage@NatNetHelper@@SAXHPAD@Z
?TrimLine@NatNetHelper@@SAHPAD@Z
?Uninitialize@NatNetServer@@QAEHXZ
?UninitializeWinsock@NatNetHelper@@SAHXZ
?User_VerbosityLevel@NatNetHelper@@2HA DATA
?bWinsockInitialized@NatNetHelper@@0_NA DATA
AllocateBMGImage
CompressBMGImage
ConvertPaletteToRGB
ConvertToGrayScale
ConvertToPseudoGrayScale
CopyBMGImage
CreateBMI
CreateBitmapFromData
CreateBitmapFromFile
CreateBitmapFromJPEGFile
CreateBitmapFromPNGFile
FreeBMGImage
FreeBMGMemory
GetDataFromBitmap
GetDataFromFile
GetLastBMGError
GetLastBMGErrorMessage
GetUnpackedArray
InitBMGImage
RB_AddRigidBodyMarker
RB_CameraCount
RB_CameraOrientationMatrix
RB_CameraXLocation
RB_CameraYLocation
RB_CameraZLocation
RB_ClearRigidBodyList
RB_CreateRigidBody
RB_DeleteRigidBody
RB_DeleteRigidBodyMarker
RB_FrameMarkerCount
RB_FrameMarkerX
RB_FrameMarkerY
RB_FrameMarkerZ
RB_GetLatestFrame
RB_GetNextFrame
RB_GetPointCloudTrackingParams
RB_GetResultString
RB_GetRigidBodyColorB
RB_GetRigidBodyColorG
RB_GetRigidBodyColorR
RB_GetRigidBodyCount
RB_GetRigidBodyEnabled
RB_GetRigidBodyFlexibility
RB_GetRigidBodyID
RB_GetRigidBodyLocation
RB_GetRigidBodyMarker
RB_GetRigidBodyMarkerCount
RB_GetRigidBodyRotationConst
RB_GetRigidBodyTranslationConst
RB_GetSyncQuality
RB_InitializeRigidBody
RB_IsRigidBodyTracked
RB_LoadDefinition
RB_LoadProfile
RB_SaveDefinition
RB_SetPointCloudTrackingParams
RB_SetRigidBodyColor
RB_SetRigidBodyEnabled
RB_SetRigidBodyFlexibility
RB_SetRigidBodyID
RB_SetRigidBodyOrigin
RB_SetRigidBodyRotationConst
RB_SetRigidBodyTranslationConst
RB_ShutdownRigidBody
RB_StartCameras
RB_StopCameras
RB_StreamNP
RB_StreamTrackd
RB_StreamVRPN
ReadBMP
ReadCEL
ReadGIF
ReadIFF
ReadPCX
ReadPNG
ReadPSD
ReadRGB
ReadTGA
ReadTIFF
SaveBitmapToFile
SaveBitmapToJPEGFile
SaveBitmapToPNGFile
SaveUnpackedArray
SetBMGBackgroundBitmap
SetBMGBackgroundColor
SetBMGBackgroundImage
WriteBMP
WritePNG
WriteRGB
WriteTGA
WriteTIFF
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users