Quantcast
Channel: ArchiCAD-Talk - Developer Forum
Viewing all articles
Browse latest Browse all 564

Add-On wizard (DevKit 19) generates un-compilable code

$
0
0
Author:Akos Somorjai
Posted: Fri Oct 02, 2015 8:30 am (GMT+1)


adlarch wrote:
Hello, I'm new to the world of AC add-on development so please bear with me and sorry if this question has been addressed elsewhere... (i searched the best i could)

I managed to compile the example add-ons with VS2010, and successfully ran them in AC19

As i like to start with a clean slate, i took a look over the Add-On Wizard. Here are the build errors i get...



Code:
1>------ Build started: Project: ACAddOn1, Configuration: Debug x64 ------
1>Build started 2015-09-29 3:07:13 PM.
1>InitializeBuildStatus:
1>  Touching "x64\\ACAddOn1.unsuccessfulbuild".
1>CustomBuild:
1>  All outputs are up-to-date.
1>ClCompile:
1>  ACAddOn1.cpp
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(54): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(54): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(55): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(84): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(84): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(84): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(85): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(85): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(85): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(86): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(86): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(86): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(87): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(88): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(88): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(88): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(89): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(90): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(91): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(92): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(93): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(94): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(95): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(96): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(96): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(96): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(97): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(98): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(98): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(98): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(99): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(99): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(100): error C2143: syntax error : missing ';' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(100): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(113): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(113): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(161): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(163): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(164): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(164): error C2143: syntax error : missing ',' before '*'
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(187): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files\graphisoft\api development kit 19.3003\support\modules\gsroot\RS.hpp(187): error C2143: syntax error : missing ',' before '*'
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(123): error C2143: syntax error : missing ';' before '__cdecl'
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(123): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(123): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(125): error C2143: syntax error : missing ';' before '__cdecl'
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\GRAPHISOFT\API Development Kit 19.3003\Support\Inc\ACAPinc.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: 'CALLBACK': undeclared identifier
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C2065: 'LPFNPSPCALLBACKA': undeclared identifier
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\prsht.h(97): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.96
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Some of the missing types are "WCHAR", "HINSTANCE", "HWND"... the funny thing is that when I try to find the definitions using VS2010 "find definition" function it finds them....

Any help is greatly appreciated!


Please add an #include <windows.h> to the include section in the .cpp file.

Best, Akos


Viewing all articles
Browse latest Browse all 564

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>