• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to tell GCC where to find source code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell GCC where to find source code?


  • Subject: Re: How to tell GCC where to find source code?
  • From: "Paul Sanders" <email@hidden>
  • Date: Tue, 17 Nov 2009 14:49:04 -0000

I set up a symbolic link on the target machine to make gcc believe that the
object files (and indeed the source files) are where it thinks they are.  I
don't copy the files themselves across - I have the symlink(s) refer to them
across the network.  In fact, I don't copy anything across, I do all my unit
testing across the network.

Can't help you with debugging the standard library, sorry.

HTH - Paul Sanders.

----- Original Message -----
From: "Jean-Denis Muys" <email@hidden>
To: <email@hidden>
Sent: Tuesday, November 17, 2009 2:32 PM
Subject: How to tell GCC where to find source code?


Hi,

I want to trace through C++ source code that I have the source code for, but
which XCode's GCC says it can't find.

How can I tell GCC that it needs to look in *that* directory?

The warning I get when I want to trace is:

warning: Could not find object file
"/Volumes/MiniData/Development/mySQL/mysql-connector-c++-1.1.0/driver/CMakeFiles/mysqlcppconn.dir/nativeapi/mysql_native_resultset_wrapper.cpp.o"
 - no debug information available for
"/Volumes/MiniData/Development/mySQL/mysql-connector-c++-1.1.0/driver/nativeapi/mysql_native_resultset_wrapper.cpp".

And indeed, I had built that source library on a different machine (*). So
in that precise case, I can probably rebuild it on my current machine and
proceed from there, though it'll be a PITA.

Yet the question stands. Is it possible to tell GCC in which directory to
look for source code?

Another case I have where I'd like to step through source code is the
standard C++ library (and rebuilding it seems daunting to me). Here is the
GCC warning:

Xcode could not locate source file: basic_string.tcc (line: 430)

I downloaded the entire source code for the GCC 4.2 suite and I now do have
all the standard C++ library source code, including basic_string.tcc. How
can I tie it to the actual library?

I have that need because of a weird problem involving the C++ standard
library. I may describe that problem in a future post if I can't solve it on
my own.

Thanks a million,

Jean-Denis

(*) I built that library an this other machine because my code needs to run
under Leopard. When I build that library on my current Snow Leopard machine,
my code doesn't run any more on a Leopard machine. That library uses a
CMake-based build system. Since I don't know anything about that system,
rather than spend an indeterminate amount of time learning about it to find
out what the issue is, I found it quicker to simply build it on a Leopard
machine once and for all.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to tell GCC where to find source code? (From: Jean-Denis Muys <email@hidden>)

  • Prev by Date: How to tell GCC where to find source code?
  • Next by Date: Re: How to tell GCC where to find source code?
  • Previous by thread: How to tell GCC where to find source code?
  • Next by thread: Re: How to tell GCC where to find source code?
  • Index(es):
    • Date
    • Thread