Find the answer to your Linux question:
Results 1 to 2 of 2
Hi I am making porting from gcc 3.4.6 to gcc 4.1.2 but there are alot of problems as while i am building an executable it uses libraries of the old ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    1

    confliction between gcc 3.4.6 and gcc 4.1.2

    Hi
    I am making porting from gcc 3.4.6 to gcc 4.1.2 but there are alot of problems as while i am building an executable it uses libraries of the old gcc (3.4.6) so the executable crashes as it built by mixing 2 versions of gcc. I removed the old gcc (3.4.6) but the problem didn't solved so how can i be sure that all the libraries used in the building are for the new gcc (4.1.2)
    i.e how can i be sure that the old gcc is completly removed and all the libraries that it was using.

    Thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    The GCC toolchain is designed so that you can have multiple versions of GCC on the system at once. In my case I have 3.4, 4.1, and 4.4 installed and use them as required. So, removing 3.4 did not likely help. To migrate an application from 3.4 to 4.x, you will need to recompile all of your sources, including any shared or static libraries that are not part of the standard system. You will need to review your Makefiles to be sure that it is linking to generic library versions, such as -l xyz and not -l libxyz.so.8.0. And finally, you may need to make some code changes, or specify some compiler/linker flags to support deprecated constructs since 4.x is much more standards-compliant than 2.95 or 3.4.x. In effect, this is a platform port. Treat it as such.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...