The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (Archicad API, BIMx API, BIMcloud API) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy

#306606
Hi.
I can't figure out how to resolve this link. error. I tried to search for InputFromDataFile within API structure but with no luck. Thanks again for your assistance.
Code: Select all
Error	LNK2019	unresolved external symbol "short __cdecl InputFromDataFile(int,class GS::UniString const &,class GS::UniString const &,int,int *,class GDLRequestResult &)" (?InputFromDataFile@@YAFHAEBVUniString@GS@@0HPEAHAEAVGDLRequestResult@@@Z) referenced in function GetExportedFuncAddrs	CorocadGDX_23	D:\corocad\corocad	D:\corocad\corocad\GDLDev.lib(ACGDlib.obj)	1	
User avatar
By alexhajdu
#306950
Sure. There is a change in function signatures for 23. The same for OutputToData...
Code: Select all
GSErr __GDLEXT_CALL InputFromDataFile(Int32                channel,
                                      const GS::UniString& recordID,
                                      const GS::UniString& fieldID,
                                      Int32                nrvals,
                                      Int32*               nrgotvals,
                                      GDLRequestResult&    values)
vs
Code: Select all
GSErr __GDLEXT_CALL InputFromDataFile(Int32                      channel,
                                      const GS::UniString&       recordID,
                                      const GS::UniString&       fieldID,
                                      Int32                      nrvals,
                                      Int32*                     nrgotvals,
                                      GS::Array<GdlValueRecord>& values,
                                      GS::Array<GS::UniString>&  stringvals)