API realnumbers.h error
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2013-12-13 07:26 PM - last edited on ā2023-08-01 04:38 PM by Doreena Deng
ā2013-12-13
07:26 PM
Hi All,
I get an error:
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2220: warning treated as error - no 'object' file generated
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): warning C4091: 'static ' : ignored on left of 'const double' when no variable is declared
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2143: syntax error : missing ';' before 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2059: syntax error : 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): warning C4091: 'static ' : ignored on left of 'const double' when no variable is declared
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): error C2143: syntax error : missing ';' before 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): error C2059: syntax error : 'constant'
when I include model.hpp
Any ideas what could be the problem?
I would like to get the elements in the opened model.
Thx: Andor
I get an error:
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2220: warning treated as error - no 'object' file generated
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): warning C4091: 'static ' : ignored on left of 'const double' when no variable is declared
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2143: syntax error : missing ';' before 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2059: syntax error : 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): warning C4091: 'static ' : ignored on left of 'const double' when no variable is declared
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): error C2143: syntax error : missing ';' before 'constant'
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(79): error C2059: syntax error : 'constant'
when I include model.hpp
Any ideas what could be the problem?
I would like to get the elements in the opened model.
Thx: Andor
Labels:
- Labels:
-
Add-On (C++)
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2013-12-15 01:28 PM
ā2013-12-15
01:28 PM
AndorSzamos wrote:Which version of the API are you working with, e.g. 17?
I get an error:
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): error C2220: warning treated as error - no 'object' file generated
1>c:\program files (x86)\graphisoft\api development kit 17.3002\support\modules\geometry\RealNumber.h(76): warning C4091: 'static ' : ignored on left of 'const double' when no variable is declared
1>c:\program files (x86)\graphisoft\api development kit
when I include model.hpp
Any ideas what could be the problem?
Also, are you able to compile the example project
Ralph Wessel BArch
Active Thread Ltd
Active Thread Ltd
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2013-12-16 01:57 AM
ā2013-12-16
01:57 AM
Hi Ralph,
Thanks for your reply.
I am using 17 and I started to modify listing manager as a base project .
I am able to compile modelaccess without errors.
Thanks for your reply.
I am using 17 and I started to modify listing manager as a base project .
I am able to compile modelaccess without errors.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2013-12-17 03:06 PM
ā2013-12-17
03:06 PM
AndorSzamos wrote:Does your code define EPS anywhere?
Hi Ralph,
Thanks for your reply.
I am using 17 and I started to modify listing manager as a base project .
I am able to compile modelaccess without errors.
Ralph Wessel BArch
Active Thread Ltd
Active Thread Ltd
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2014-01-14 05:05 PM
ā2014-01-14
05:05 PM
Ralph,
Sorry for the late answer I was taking a break. Hope you had a nice holiday as well.
In realnumber.h EPS is already defined, it is the same code as in ModelAccess.
Is it better to reverse engineer ModelAccess?
This is the include part of my code:
#include <math.h>
#include <string.h>
#include "ACAPinc.h" // also includes APIdefs.h
#include "APICommon.h"
#include "DGModule.hpp"
#include "DG.h"
#include <Model.hpp>
#include "MDIDs_APICD.h"
If you outcomment #include Model.hpp everything works fine. using include "Model.hpp" doesn't help.
Thank you for your help.
Sorry for the late answer I was taking a break. Hope you had a nice holiday as well.
In realnumber.h EPS is already defined, it is the same code as in ModelAccess.
Is it better to reverse engineer ModelAccess?
This is the include part of my code:
#include <math.h>
#include <string.h>
#include "ACAPinc.h" // also includes APIdefs.h
#include "APICommon.h"
#include "DGModule.hpp"
#include "DG.h"
#include <Model.hpp>
#include "MDIDs_APICD.h"
If you outcomment #include Model.hpp everything works fine. using include "Model.hpp" doesn't help.
Thank you for your help.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā2014-01-14 05:12 PM
ā2014-01-14
05:12 PM
AndorSzamos wrote:Yes, that's why I'm asking if you may have also defined EPS anywhere else. The error you reported can occur if EPS was already defined before RealNumber.h was parsed.
In realnumber.h EPS is already defined, it is the same code as in ModelAccess.
Ralph Wessel BArch
Active Thread Ltd
Active Thread Ltd