Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, I have many files that I need to link together. Along with these files came a few sample executables. I am unable to run the executables at this time. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2

    Linking Libraries to Execute


    Hello,

    I have many files that I need to link together. Along with these files came a few sample executables. I am unable to run the executables at this time. I have one .cpp file I want to compile with many header files (.hpp) and libraries (.so). When I try to compile my .cpp file, I got many errors, among them those saying that a file or directory does not exist, but I can see and open the header file that is supposed to be missing. I have been trying to find how to link new locations for libraries, and I have seen different flags, the -L and -r primarily, but I can't quite figure out how to work those into compile and run times. Any assistance on linking all these files to compile and execute my .cpp file would be of great help.

    Thanks,
    Liz

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    477
    welcome to the forum

    this looks helpful

    Link Options - Using the GNU Compiler Collection (GCC)
    the sun is new every day (heraclitus)

  3. #3
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2
    So I've linked the libraries using -L, but I still get compiler errors saying header files do not exist, but not as many. The two that are missing are two I know I do not have. They are : cv.h and highgui.h. Are these open source files or should the company I got the files from provide those? I found a few cv.h links online, but nothing about the highgui.h. Any thoughts?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •