BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad C++ API
About Archicad add-on development using the C++ API.

Linking error - porting to AC23

Anonymous
Not applicable
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.
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	
3 REPLIES 3
Anonymous
Not applicable
Resolved, mistake on my side...
cfranklin
Newcomer
Do you mind expanding on what you did to resolve it? I'm now running into this as well trying to port to 23.
Anonymous
Not applicable
Sure. There is a change in function signatures for 23. The same for OutputToData...
GSErr __GDLEXT_CALL InputFromDataFile(Int32                channel,
                                      const GS::UniString& recordID,
                                      const GS::UniString& fieldID,
                                      Int32                nrvals,
                                      Int32*               nrgotvals,
                                      GDLRequestResult&    values)
vs
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)
Learn and get certified!