---------- Forwarded message ----------
From: ankit jain <ankitgu...@gmail.com>
Date: 2009/5/15
Subject: Re: [CMake] unable to include a source file for all sub directories
To: Hendrik Sattler <p...@hendrik-sattler.de>




2009/5/15 Hendrik Sattler <p...@hendrik-sattler.de>

> Zitat von ankit jain <ankitgu...@gmail.com>:
>
>> If suppose 5 files are there in  one folder and each file uses some
>> functions form other file in the same folder and when ur creating library
>> then there is no problem..
>>
>> Issue is if one folder file uses another file which is in diff. folder or
>> in
>> its parent folder then creating library creates problem and giving error
>> as
>> unresolved symbols. since iam building through cmake and i used the
>> already
>> said method of how iam adding sources for the libraries form the sub
>> folders
>> i think my way of including files is somewhat wrong or iam missing
>> somethign
>> duet o which those files are not able to take the support that file...
>>
>
> The file positions do not matter to the compiler if they are all sources to
> the same library.
>
> 1.
> Is the list of files correct? Check with a message() in your
> CMakeLists.txt.
>

Yes

>
> 2.
> Are all files compile into object? Check the _verbose_ output.
>

Yes

>
> 3.
> Is that a compiler error or a linker error?
>

Linker error for many objects files that have created

>
> HS
>
>
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to