cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

cannot open file ACAP_STATD.lib

RAFD
Participant

Does anyone know how to fix this? I tried to correct the path by removing Win but instead of fixing the error I got hundreds more.

RAFD_0-1718269975789.png

 

23 REPLIES 23
LChen
Graphisoft
Graphisoft

As I wrote, please correct the path or add again the lib file in your VS project.

HTH

I already did that as I mentioned, here's the result after correcting the path

RAFD_0-1718272652822.png

 

Hi,

 

Please use the ACAP_STAT.lib instead of the debug version.

 

Best, Akos

Hi Akos,

 

I tried doing it but I got same 600 errors.

I think the issue is not related to ACAP_STAT.lib then.

Could you please post the relevant part of your source, mainly AddOnMain.cpp/.hpp?

 

Thanks, Akos

Here is the file Sir Akos. Thank you

I think the problem is that you are including ACAPI_MigrationHeader.hpp twice in your project, once in AddOnMain.cpp and once in APICommon.c – remove one of those where it's not needed.

That header includes implementations, so it should be included only once.

 

Best, Akos

Thank you sir Akos, that fix almost all the errors now I'm down to 1

RAFD_0-1718358827529.png

 

RAFD
Participant

I messed up. I got last 1 errors like I send recently after that I tried to clean then rebuild and the results got the 600+ errors back