Coder Social home page Coder Social logo

fCWT in C++ about fcwt HOT 7 OPEN

Arpit-1996 avatar Arpit-1996 commented on August 15, 2024
fCWT in C++

from fcwt.

Comments (7)

felixdollack avatar felixdollack commented on August 15, 2024 1

@Arpit-199 you need to build the fCWT library or include the source files.
Your custom code in cwt.cpp is not enough.
In your code you include fcwt.h somewhere at the beginning of the file right?
Then you need to tell the compiler to include this file and also add the implementation in fcwt.cpp.

You maybe have to adjust the path to the files but something like the following should work:

g++ cwt.cpp src/fcwt/fcwt.cpp -I src/fcwt/

from fcwt.

stellarpower avatar stellarpower commented on August 15, 2024 1

It's a linker error, not compiler, so you need to add the library with -l (the addition of headers above won't solve it because it's already compiled). Better than manualy adding flags would be to use CMake to build.

from fcwt.

fastlib avatar fastlib commented on August 15, 2024

@Arpit-1996, is your question/issue answered/solved? If yes, than this issue can be closed.

from fcwt.

arpitomar avatar arpitomar commented on August 15, 2024

Screenshot 1
Screenshot 2
I run this command in the command terminal and we make CMake files. I do not understand where I save the C++ Example and run this code
Screenshot 3
If I run C++ code in any folder this error happens.
What should I do?

from fcwt.

felixdollack avatar felixdollack commented on August 15, 2024

@arpitomar you are not telling the compiler where to find fcwt.h

@Arpit-199 you need to build the fCWT library or include the source files. Your custom code in cwt.cpp is not enough. In your code you include fcwt.h somewhere at the beginning of the file right? Then you need to tell the compiler to include this file and also add the implementation in fcwt.cpp.

You maybe have to adjust the path to the files but something like the following should work:

g++ cwt.cpp src/fcwt/fcwt.cpp -I src/fcwt/

from fcwt.

Arpit-1996 avatar Arpit-1996 commented on August 15, 2024

I include fcwt.h file in main.cpp and fcwt.cpp file but error remains same.

Screenshot 2023-09-15 173650
111

2023-09-15 173746
Then how to remove error?

from fcwt.

stellarpower avatar stellarpower commented on August 15, 2024

It is a linker error you are seeing. You need to tell g++ where the library was installed to (-L can be used for this), and then link against it with -lfCWT. As it stands, you aren't linking against the library you built earlier, so the error is saying that the functions decalred in the header don't have implementations in your code, and can't be found elsewhere.

from fcwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.