Christian Damus(deleted)
|
Re: linked source file is not compiled in a project
|
Christian Damus(deleted)
09/07/2010 2:31 PM
post66172
|
Re: linked source file is not compiled in a project
Hi, Weijie,
Yes, this is expected. The command-line make tool knows nothing about
linked resources, which are a fiction of the IDE's project metadata.
You need to add this source file to the project's "extra source path"
setting (the EXTRA_SRCVPATH macro): find this in the "QNX C/C++
Project" property page, on the "Compiler" tab, pull down the "Category"
selector and choose "Extra sources paths" (sic). Use the button to add
directories to the source path (note that you cannot add individual
source files).
To handle the case of individual files, you can add the object file
compiled from a source file to the EXTRA_OBJS macro (in the project's
Linker settings). This would be feasible if, for example, some other
project already builds the object file.
HTH,
Christian
On 07/09/10 02:22 PM, Weijie Zhang wrote:
> On 6.4.1, the IDE on Windows XP. I created a QNX C++ project and I added a existed file into the project. And I can
see the source file that is marked as linked in my project. However the build does not compile the linked source file.
Look into the common.mk, I can't see any clue that source file is included.
>
> Is it an expected behavior or not?
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post66170
>
>
|
|
|