473,568 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to compile my C++ demo project?

7 New Member
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.
Dec 28 '22 #1
1 6754
23 New Member

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
Jan 28 '23 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Xiaofeng Zhang | last post by:
when I compile my project setting, there are many LINK errors. But when I compile my project under debug setting, everything is OK. How can I deal with it? The errors is followed. Linking... LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCR71.dll) LIBCMT.lib(crt0dat.obj) : error LNK2005: __exit already...
by: therobman | last post by:
I am able to successfully build my project using a fresh install of Visual Studio .Net, but when I try and compile/run it, a dialog box comes up stating: "Unable to start debugging." "Unable to start program blah blah blah.exe" "The system cannot find the file specified".
by: emferrari | last post by:
Hi all I have a cs project that contains a reference to the MSI.DLL. If I open the project manually into the VS.NET it compiles fine, but when it runs against nant it fails. The error is regarding missing namespaces that are into the MSI.DLL. Here is my nant command: <?xml version="1.0"?>
by: Ramesh2006 | last post by:
Hi, The following error occurred when i programmatically compile another project from my present project. The Error: error CS0234:The type or namespace name 'Windows' does not exist in the namespace 'System' <are you missing an assembly reference> The Source Code:
by: David T. Ashley | last post by:
I have a large project on a Linux box that may eventually have several hundred 'C' source files, which need to be compiled and linked into several executables. Not all of the executables will use all of the files (i.e. there would be no linker references to some symbols). The project will naturally be broken down into several or more...
by: shreesaidas | last post by:
hi, can anyone tell me this, how to compile vc++ project through ant- build.xml? appritiate your help.. thanks..
by: linktoali | last post by:
I need a demo project on inventory database system with the backend SQL server databa in VB.net
by: fressanme | last post by:
how do i compile the projects ive made? :)
by: TankRockett | last post by:
Recently i've just built an SFML/C++ project on Visual Studio Code using CMake and MinGW.I've successfully compiled and run a test file in my project folder. Here's my Makefile: StarFire: g++ main.cpp -o main.exe -DSFML_STATIC -I F:\SFMLPrj\StarFirestc\Prefixes\include -L F:\SFMLPrj\StarFirestc\Prefixes\lib -lsfml-graphics-s...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.