force gcc to compile in different version???
HI ALL....
i just installed KNOPPIX 3.3......and i'm trying to compile a project that i have.....but it has many errors and i found out that it uses the gcc version 3.3.3 i need to use gcc version 2.95.3 i downloaded version 2.95.3 but have no idea how to install it.... i later found out that KNOPPIX has 2.95 and 3.3 gcc installed...but 3.3 is the default........ can i force the comilper to compile with the 2.95 instead of the 3.3???? how would i type it under the kernal window? like this??? %g++ -v 2.95 main.cc please help...thanx |
from the few minutes of reading the gcc man page, yeah you would use the Target option,
-V , lowercase -v is version of gcc, not a target option , replace the -v with -V . |
i'm sorry...but i'm very very new at this.....so when you say target option, it means where the version is store right?
so.... %:gcc -V <target> right??? if so ..... how would i find out where and which file do i point it to? can you show me a example??? |
I usually never compile syuff by hand yet, cause I don't program in C.
Just compile like you would normally, using gcc -V 2.95 right? 'man gcc' youre NEW at this? what are you doing compiling something ? What? Your trippin me out bro. |
yeah...i normally compile everything in window with visual C++ .....but after it crash on me while i was working on a 500 line program.....(wich i didn't save)......i realized that microsoft suck ass.........
so i'm trying to convert myself to linux...but i never ever touched linux in my life.....so everything is really new to me..........(took me forever to figur out how to install it)........ |
gcc -V 2.95 helloworld.c
I guess. |
All times are GMT -5. The time now is 03:06 PM. |