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

Linking Error when Build Element_Test Project (APIDevKit 14)

Anonymous
Not applicable
Dear all...
I try to build Element_Test Project ( Example from API Dev Kit 14.2550) and found some error ...

1>.\Src\APICommon.c(21) : fatal error C1083: Cannot open include file: 'GSSystem.h': No such file or directory

After I add ..\..\Support\Modules\GSUtils into Additional Included Directory and re-build again ... error has changed to ...

1>APICommon.obj : error LNK2019: unresolved external symbol __imp__GSSysBeep@0 referenced in function "void __cdecl ErrorBeep(char const *,long)" (?ErrorBeep@@YAXPBDJ@Z)

How can I solve this ?
Thank you.

Goldy Ratch
5 REPLIES 5
Ralph Wessel
Mentor
Goldy wrote:
... error has changed to ...
1>APICommon.obj : error LNK2019: unresolved external symbol __imp__GSSysBeep@0 referenced in function "void __cdecl ErrorBeep(char const *,long)" (?ErrorBeep@@YAXPBDJ@Z)
How can I solve this ?
Add the library Support\Modules\GSUtils\GSUtilsImp.LIB to the project.
Ralph Wessel BArch
Active Thread Ltd
Anonymous
Not applicable
Thank you
Goldy Ratch
Matt Balaam
Advocate
Hi,

I am getting this same error, however adding the GSUtilsImp.LIB file to the project makes no difference to the error. Is there something I am doing wrong?

I dragged the file into the solution explorer with the other LIB files, is this correct?

Thanks,

Matt
AC24 (7000 AUS FULL)| Windows 10 Pro | Intel Core i7-12700 @ 2.1GHz | 32GB RAM | NVidia T1000
Anonymous
Not applicable
Did anyone find a solution to this, I am a noob with Visual Studio 5
Anonymous
Not applicable
I also had such problem. Solution is to add GSUtilsImp.lib from \Support\Modules\GSUtils\Win in Solution Explorer of VS with other libs.