Hi Ian, You should be using rosmake, otherwise you'll have to manage ROS dependencies by hand (which must be a nightmare). Did you follow the tutorials before starting your project? Tutorials 2 and 3 on creating and building ROS packages should be helpful: http://www.ros.org/wiki/ROS/Tutorials/CreatingPackage http://www.ros.org/wiki/ROS/Tutorials/BuildingPackages Cheers, Miguel. 2010/6/8 ibwood > > Hi all, > > I'm working on some C++ code and I have all of the files required to > execute > the project. The purpose of the code is to pass serial commands to a > joystick to operate it. Now I know the code won't properly work without a > joystick (I don't have one yet), I'm just trying to get the code compiled > correctly using "g++ talker.cpp -o talker.exe" in the command line. NOTE: I > have all of the header files located in the same package as the cpp code. > My > question is what is going wrong at compile time? > > Here is the resulting output: > > $ g++ joyTalker.cpp -o joyTalker.exe > In file included from ros.h:40, > from joyTalker.cpp:17: > console.h:269:41: error: rosconsole/macros_generated.h: No such file or > directory > In file included from node_handle.h:40, > from ros.h:45, > from joyTalker.cpp:17: > advertise_options.h:31:26: error: ros/forwards.h: No such file or directory > In file included from node_handle.h:41, > from ros.h:45, > from joyTalker.cpp:17: > advertise_service_options.h:32:40: error: ros/service_message_helper.h: No > such file or directory > In file included from publisher.h:32, > from node_handle.h:32, > from ros.h:45, > from joyTalker.cpp:17: > message.h: In static member function ‘static std::string > ros::Message::__s_getDataType()’: > message.h:63: error: ‘ROS_FATAL’ was not declared in this scope > message.h: In static member function ‘static std::string > ros::Message::__s_getMD5Sum()’: > message.h:64: error: ‘ROS_FATAL’ was not declared in this scope > message.h: In static member function ‘static std::string > ros::Message::__s_getMessageDefinition()’: > message.h:65: error: ‘ROS_FATAL’ was not declared in this scope > In file included from node_handle.h:35, > from ros.h:45, > from joyTalker.cpp:17: > service_client.h: In member function ‘bool ros::ServiceClient::call(MReq&, > MRes&)’: > service_client.h:66: error: there are no arguments to ‘ROS_FATAL’ that > depend on a template parameter, so a declaration of ‘ROS_FATAL’ must be > available > service_client.h:66: note: (if you use ‘-fpermissive’, G++ will accept your > code, but allowing the use of an undeclared name is deprecated) > service_client.h:67: error: there are no arguments to ‘ROS_FATAL’ that > depend on a template parameter, so a declaration of ‘ROS_FATAL’ must be > available > In file included from node_handle.h:41, > from ros.h:45, > from joyTalker.cpp:17: > advertise_service_options.h: In member function ‘void > ros::AdvertiseServiceOptions::init(const std::string&, const > boost::function&)’: > advertise_service_options.h:76: error: there are no arguments to > ‘ROS_FATAL’ > that depend on a template parameter, so a declaration of ‘ROS_FATAL’ must > be > available > advertise_service_options.h:77: error: there are no arguments to > ‘ROS_FATAL’ > that depend on a template parameter, so a declaration of ‘ROS_FATAL’ must > be > available > > Thanks for the help! > -- > View this message in context: > http://ros-users.122217.n3.nabble.com/Problem-compiling-C-file-locations-tp879449p879449.html > Sent from the ROS-Users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > ros-users mailing list > ros-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ros-users > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users >