|
Re: Using linked resources [message #1797306 is a reply to message #1797204] |
Mon, 29 October 2018 16:58 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Eclipse linked resources are not what you think they are.
You will need to specify the headers and objects (libraries) to your major project in your test project.
I presume you are having Eclipse CDT create the makefiles for you.
If so,
o) You will need to have each unit test in a separate project. Eclipse will not create a makefile with more than one executable,
o) The easiest place to add the links is Project --> Properties --> C/C++ General --> Paths and Symbols
o) If you are using Paths and Symbols, you will need to enable the CDT Managed Build Settings provider in Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros, etc. --> Providers tab to get the Indexer to see them
You can also provide a symlink to the necessary headers and source in your unit test projects.
You may also want to specify the project build order in
Window --> General --> Preferences --> Workspace --> Build
This order will be used for Project --> Build All
|
|
|
Powered by
FUDForum. Page generated in 0.23369 seconds