Compile error - clang: error: linker command failed with exit code 1 (use -v to see invocation) #7594
Replies: 5 comments 1 reply
-
You're only compiling ClassesAndObjects.cpp, but that code references Person::getName() which appears to be implemented in Person.cpp, which also needs to be compiled, and the resulting object file linked with your executable. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update. I believe that i should have created all of these
files under project ( or workspace - again forgive me I am not sure how
that works) and should run it all together. However I dont know how to link
all these files under the Visual Studio.. Can you advice?
…On Wed, May 26, 2021 at 9:21 PM Sean McManus ***@***.***> wrote:
You're only compiling ClassesAndObjects.cpp, but that code references
Person::getName() which appears to be implemented in Person.cpp, which also
needs to be compiled, and the resulting object file linked with your
executable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7594 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDOBWJRSARVVIHP5FOHLXLTPU3ZTANCNFSM45Q5KBMA>
.
|
Beta Was this translation helpful? Give feedback.
-
@clearmindful Note: these documentations/notes appear to be from some college course. |
Beta Was this translation helpful? Give feedback.
-
Hi
Could I kindly ask you to recommend the best c++ course that will
beneficial for me? Don’t get me wrong Udemy courses are very good, but if
there is a course with an instructor that delivers best result in real life
projects and what happens in industry these days, I will go for that in a
blink of an eye.
Thanks 🙏 🌟
…On Thu, 27 May 2021 at 19:57, Michelle Matias ***@***.***> wrote:
@clearmindful <https://github.com/clearmindful>
Here are some documentations about compiling and linking with g++ that
might provide more information about compiling and linking.
Note: these documentations/notes are appear to be from some college course.
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
https://courses.cs.washington.edu/courses/cse373/99au/unix/g++.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7594 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKDOBWKZHMQULCZPBJJ2DZDTPZ2X5ANCNFSM45Q5KBMA>
.
|
Beta Was this translation helpful? Give feedback.
-
I don't know of any C++ course that can really teach and prepare people for this. Also real world experiences can be unique to the specific projects and scenarios (where is the software being used: a home device, a phone, or a vehicle?). From my personal experience developers mostly learn and grow their skills on the job. Usually, as someone takes on new projects then they would need to research and learn the new technologies (if any) that would meet a project's requirements. So what developers need to learn for a project sometimes depends on what the project requires. In terms of just learning a coding language so you can use it to create software, there are plenty of online course that teach fundamentals to get you started. The online C++ courses I've seen on www.pluralsight.com teach C++ fundamentals, its syntax, and software design patterns usage. There could be more that I haven't seen as well. |
Beta Was this translation helpful? Give feedback.
-
Hi
New to C++ and Visual Studio Code. I had followed some videos in getting the Visual Studio Code to work on macOS Mojave 10.14.6 but it just doesnt work ... Perhaps is something trivial so forgive my naivness; it will be wonderful to get someone professional to help.
With appreciation
Beta Was this translation helpful? Give feedback.
All reactions