How to compile my C++ demo project?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markleo
    New Member
    • May 2022
    • 7

    How to compile my C++ demo project?

    See my snapshow below,
    this is my C++ project, in my main file `UploadVideo.cp p`, it
    `#include "vod_sdk/upload.h"` and in `#include "vod_sdk/upload.h"` it includes many files of `vod_sdk/`.



    ![img_2022-12-28_171243919.pn g](https://static.daniweb.com/attachmen...840b1b2ba2.png)

    now when I use g++ compile my project `g++ xxx.cpp -ljsoncpp -o uv`, I get below error ` undefined reference to`.




    ---

    Please help me with this.
    Last edited by Niheel; Dec 29 '22, 12:30 AM.
  • pritikumari
    Banned
    New Member
    • Jan 2023
    • 23

    #2
    METHODS OF C++ DEMO PROJECT

    Create a folder for our C++ program.
    Navigate to that folder.
    Create our C++ program from a text editor (I used Visual Studio Code).
    Compile our source code into object files.
    Link our object files to produce*an*exec utable

    Comment

    Working...