Use gcc without setting environment variables? -


i need information. possible use gcc without set environment variables? quite complicated explain why, have come method that. have installed, want use gcc through binaries.

is there way that?

the reason have 2 different version of gcc, 1 use compilation etc. on other side have develop couple of scripts compile c sources using other version , don't want mess environment variables.

you can specify gcc compiler in command

cc=/usr/bin/gcc-4.4 cxx=/usr/bin/g++-4.4 make 

if use cmake, use next cmake parameters

cmake -dcmake_c_compiler=/usr/bin/gcc-4.4 -dcmake_cxx_compiler=/usr/bin/g++-4.4 . 

ld_library_path shows application app can find linked shared objects, ld_library_path not needed making


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -