Comments (10)
I have never tried on windows, but would be happy to ensure it works on Win.
Are you using WSL, or pure Win?
The general cmake procedure would be:
cmake -Bbuild_dir -S.
cmake --build build_dir
or something similar.
I have no experience with coupling a CMake project into a VS Code?
from fdict.
Thank you for the ultrafast reply. I'm on a pure Win system. Should I generate my own CMakeLists.txt file before using the following lines?
cmake -Bbuild_dir -S
cmake --build build_dir
from fdict.
no, cmake
should be part of this directory, so checkout the repo, then issue the above commands. (remember the .
in front of S
from fdict.
(Typo) So, would I be correct in stating that I should
1.) download and extract the fdict library to my project,
2.) run
cmake -Bbuild_dir -S.
cmake --build build_dir
with no other changes?
Thanks again!
from fdict.
well, ideally you should just install the library somewhere, how do you otherwise add dependencies in your VS Code project?
But the above will compile fdict in and you should find a libfdict.dll
in your build_dir
directory.
If you want to install it somewhere, you should specify so with -DCMAKE_INSTALL_PREFIX
from fdict.
I'll have another look into this. After installation, you mentioned linking via:
FDICT_PATH = /path/to/fdict/parent
FDICT_LIBS = -L$(FDICT_PATH) -lfdict
FDICT_INC = -I$(FDICT_PATH)
Would this be written in the main Fortran file?
from fdict.
No, this is how to link against external dependencies. Have you ever tried to link another library into an executable? :-D
from fdict.
This may be the first time I've had to do this.
from fdict.
Ok, you should definitely read up on how to link libraries/depedencies against a small project.
I would advice you to play around with this on a smaller scale before going into dependencies as you are doing now.
I would highly suggest you to ask around your local department for members who knows about this stuff.
Here is a minimal description of libraries and how to link them (works the same for fortran).
https://www.cs.swarthmore.edu/~newhall/unixhelp/howto_C_libraries.html
from fdict.
Thanks for all the help zerothi!
from fdict.
Related Issues (20)
- Can't get it to work HOT 3
- How to implement in an example HOT 4
- Error linking the library to another project HOT 9
- Creating the dictionary from a read file HOT 5
- Add c_ptr, c_funptr to variable and dictionary HOT 1
- please provide a pkgconfig HOT 2
- Memory leak when overwriting entries from concat
- README.md clarification/enhancement HOT 4
- problem with install HOT 20
- Compilation error with CRAY compiler HOT 3
- interface which to query contained type field HOT 1
- document cmake building instructions HOT 1
- Fails to build with `ninja-build` HOT 2
- Make project compatible with `FetchContent` HOT 6
- Clarify the api HOT 2
- Using plain C preprocessor instead of fypp? HOT 7
- CI tools HOT 4
- Strongly typed dictionaries HOT 7
- having error in compiling siesta-master HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdict.