|
Re: Use unidata netcdf libraries [message #1758240 is a reply to message #1758135] |
Sat, 25 March 2017 15:13 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Eclipse is mostly an editor with additional functionality to run external programs to build a project.
It doesn't know much about calling conventions.
That's something peculiar to the external compiler.
If you want to call Python code from C++ then you should google how to do that.
Here's one such link: https://www.coveros.com/calling-python-code-from-c/
There are many more.
Eclipse needs to know the location (path to) the include headers and libraries to build a Makefile assuming you want one built.
You d this by modifying the Tool Settings for the compiler and inker.
The Tool Settings tab is under Project-->Properties-->C/C++ Build-->Settings
Select Includes under the appropriate compiler and set the header locations in the pane labeled (Include Paths -I)
Select Libraries under the linker and set the panes appropriately.
the Indexer must also be informed of the path(s) to the headrs or you will get spurious errors when editing.
You do this by setting the path to the library headers under the CDT User Setting Entries found in the Entries tab of Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
[Updated on: Sat, 25 March 2017 15:35] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02245 seconds