C++ Libkovan Compile Error

4 replies [Last post]
TychoBraheProdu...
Title: NooBot
Joined: 01/18/2014
Posts:
BotPoints: 15
User offline. Last seen 3 years 45 weeks ago.

So when I try to compile a program in c++ on the kiss IDE(V 5.1.2), I get a compile failure and this error: "C:/Program Files (x86)/KISS Platform 5.1.2depth.h:218:34: error: 'INT32_MAX' was not declared in this scope". I presume that this just means that libkovan has a scope problem in depth.h, but I wanted to see if anyone else had the same issue or a fix.

"If we don't succeed, we run the risk of failure" -Dan Quayle, American Rolemodel.

TychoBraheProdu...
Title: NooBot
Joined: 01/18/2014
Posts:
BotPoints: 15
User offline. Last seen 3 years 45 weeks ago.

This seems to happen as a result of using #include in a c++ program, which seems to be necessary to get the compiler to recognize functions such as mav() with c++, unlike in a normal c program.
Also, this appears to be the problematic section in depth.h:
/**
* Returns the z world coordinate of the specified point.
*
* \param row Row index of the depth pixel
* \param column Column index of the depth pixel
* \return The z world coordinate in millimeters or -1 if no depth
* image was saved or if the depth value is not visible
* by the depth sensor
*
* \note the row/column index starts with 0
*
* \ingroup depth
*/
EXPORT_SYM int get_depth_world_point_z(int row, int column);

#ifdef __linux__
static const int INVALID_DEPTH = 2147483647;
#else
static const int INVALID_DEPTH = INT32_MAX;
#endif

So does anyone know what INT32_MAX so that the scope error could be fixed? Or does someone know how to get around using the #include?

"If we don't succeed, we run the risk of failure" -Dan Quayle, American Rolemodel.

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 2 years 30 weeks ago.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

TychoBraheProdu...
Title: NooBot
Joined: 01/18/2014
Posts:
BotPoints: 15
User offline. Last seen 3 years 45 weeks ago.

Well, it seems as though that might work, but I can't edit the header file so I guess I just have to wait for Braden to fix it. C works fine of course, but the conversion clearly screws it up.

"If we don't succeed, we run the risk of failure" -Dan Quayle, American Rolemodel.

Razaali1
Title: NooBot
Joined: 09/20/2014
Posts:
BotPoints: 2
User offline. Last seen 3 years 10 weeks ago.

Hello,

On previous team homebases they have examples of kinda what to look for. Alot of teams use Excel sheets and labeling the rows and columns with the tasks needed to be completed divided into Building, Programming, Field building ect. then the dates those need to be finished. I would look at these links and get some more ideas.

These are Gantt charts found on google images.