ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Specifying which compiler to use

asked 2013-01-28 10:31:57 -0600

BigBlueDart gravatar image

updated 2014-01-28 17:15:01 -0600

ngrennan gravatar image

When I run the catkin installation it appears that cmake is using the PGI compiler available on the system I am using. I did not explicitly tell it to use that, so I assume that it just decided that was the best one to use. However, while building the rospack package I get an error saying that it does not recognize the -Wall switch. I would like to force the build process to use the GNU compilers instead of the PGI one. Where can I change this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-01-28 11:37:55 -0600

kalectro gravatar image

Try this:

catkin_make -DCMAKE_CXX_COMPILER=/path/to/c++ --force-cmake

the force-cmake flag is neccessary, I just tried it out ;)

edit flag offensive delete link more


It appears that I only get this issue when running catkin_make_isolated. Running catkin_make does not appear to have the same problem recognizing flags.

BigBlueDart gravatar image BigBlueDart  ( 2013-01-29 03:34:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-01-28 10:31:57 -0600

Seen: 108 times

Last updated: Jan 28 '13