this is the compiler error: ***************************************************************************
/home/leonello/gazebo_svn_old/playerstage/code/gazebo/libgazebo/gazebo.h:192: error: expected ',' or '...' before numeric constant /home/leonello/gazebo_svn_old/playerstage/code/gazebo/libgazebo/gazebo.h:196: error: expected ',' or '...' before numeric constant /home/leonello/gazebo_svn_old/playerstage/code/gazebo/libgazebo/gazebo.h:201: error: expected ',' or '...' before numeric constant /home/leonello/gazebo_svn_old/playerstage/code/gazebo/libgazebo/gazebo.h:210: error: expected ',' or '...' before numeric constant Gazebo_SVN_interface.cpp: In function 'void mdlStart(SimStruct*)': Gazebo_SVN_interface.cpp:250: error: no matching function for call to 'gazebo::Client::ConnectWait(int, int)' /home/leonello/gazebo_svn_old/playerstage/code/gazebo/libgazebo/gazebo.h:201: note: candidates are: void gazebo::Client::ConnectWait(int) *************************************************************************** Thank you Domenico Jordi ha scritto: > > As Nate said it is not needed to define them. They will be shadowed > anyways. > Can you post your compile error? > > > On Dec 13, 2007 2:59 AM, Domenico Leonello < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi > sorry for the waiting but I'm really busy in this period! > > I'm not very expert but I had this problem: > > when I added the "gazebo.h" file to my C++ code, I had an error > from the > compiler that didn't recognized > "server_id" and "client_id" in this part of the .h code. In effect, I > saw that "server_id" and "client_id" weren't defined but there > were the > definitions of "serverId" and "clientId" so I changed the definitions > and now all is going well. > > Domenico > > > ************************************************************************* > class Client > { > /// \brief Create a new client > public: Client(); > > /// \brief Destroy a client > public: virtual ~Client(); > > /// \brief Test for the presence of the server. > /// \param server_id Id of the server > public: void Query(int server_id); > <------------------------------------------- > > /// \brief Connect to the server (non-blocking mode). > /// \param server_id Id of the server > public: void Connect(int server_id); > <------------------------------------------- > > /// \brief Connect to the server (blocking mode). > /// \param server_id Server ID; each server must have a unique id. > /// \param client_id Client ID; in blocking mode, each client must > have a unique id. > public: void ConnectWait(int server_id, int > client_id); > <------------------------------------------- > > /// \brief Disconnect from the server > public: void Disconnect(); > > /// \brief Wait for new data to be posted (blocking mode). > /// \returns Returns 0 on success, -1 on error. > public: void Wait(); > > private: void SemQuery(int > server_id); > <------------------------------------------- > private: void SemInit(); > private: void SemFini(); > private: void SemWait(); > > /// The server id > public: int > serverId; > <================================== > > /// The client id > public: int > clientId; > <================================== > > /// The directory containing mmap files > public: std::string filename; > > /// The semphore key > public: int semKey; > > /// The semphore id > public: int semId; > }; > ************************************************************************* > > > > > > > > > Nate Koenig ha scritto: > > Hi Domenico, > > > > The variable names in a function prototype do not need to match the > > variable names in the actual function definition. > > So in the gazebo.h file I could leave out "server_id" from the > > function prototypes, or even call them completely meaningless names. > > > > Are you having a problem with libgazebo? > > > > -nate > > > > On Nov 28, 2007 2:47 AM, Domenico Leonello > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > > >> Hi > >> > >> I would like to point out that maybe there is an error in the > gazebo.h file: > >> > >> at lines 180 (and following) the variables server_id and > client_id are > >> used but not defined! > >> In effect serverId and clientId are defined... > >> > >> I think that is a trivial error and it need only to change in the > >> "client class" definition lines that variables... > >> > >> Please tell me if I'm wrong! > >> > >> Domenico > >> > >> > ------------------------------------------------------------------------- > > >> SF.Net email is sponsored by: The Future of Linux Business > White Paper > >> from Novell. From the desktop to the data center, Linux is going > >> mainstream. Let it simplify your IT future. > >> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > >> _______________________________________________ > >> Playerstage-gazebo mailing list > >> [email protected] > <mailto:[email protected]> > >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > <https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo> > >> > >> > > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White > Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Playerstage-gazebo mailing list > > [email protected] > <mailto:[email protected]> > > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > > > > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Playerstage-gazebo mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ------------------------------------------------------------------------ > > _______________________________________________ > Playerstage-gazebo mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Playerstage-gazebo mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
