Advertisement

trouble with g++ and -I include/

Started by April 29, 2004 07:30 PM
9 comments, last by clayasaurus 20 years, 9 months ago
quote:
Original post by clayasaurus
ok, i *think* I finally figured out what is wrong


You figured correctly. This is not an attempt to beat a dead horse either, more for someone else that may come along. I snipped this from my original post since it seemed so long winded - yet I post it now, the irony...

Anything you supply as directives is prepended too or, in your specific case because of naming/version conflicts, actually overrides the compiler or linker defaults that are invoked. Once foo is found it stops and doesn''t keep searching to determine which foo is appropriate if there are indeed more than one foo to be found in the context of everywhere foo can/could be found.

You _could_ keep your filename the same if your requirements really mandate this but you would have to specify this from within the translation units, #include "../include/cmath" relative to the translation unit that declares it, and not from a compiler and/or linker standpoint. (Obviously the linker was never the issue here but same principles apply)

This topic is closed to new replies.

Advertisement