Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Ways to resolve the error - symbol(s) not found for architecture x86_64
Next
Answered
Rose Benoist
  • 20
Rose Benoist
Asked: May 18, 20222022-05-18T10:15:41+00:00 2022-05-18T10:15:41+00:00In: cpp

Ways to resolve the error – symbol(s) not found for architecture x86_64

  • 20

. Advertisement .

..3..

. Advertisement .

..4..

I’m building a new program, but when I run it, an error pops up. The error displayed is as follows:

Symbol(s) not found for architecture x86_64

I have tried several workarounds, but they still do not get the desired results. If you have come across this situation and have a solution for the “symbol(s) not found for architecture x86_64” problem, pls let me know.
Here is what I do:

Layer<double> text("pq.txt",0.5,0.5,0.5);

Thanks!

symbol(s) not found
  • 2 2 Answers
  • 69 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    hdtutoria Expert
    2022-06-06T01:29:29+00:00Added an answer on June 6, 2022 at 1:29 am

    The cause: I think the problem was that it didn’t appear to be possible to separate a templated class into .cpp and .h files.

    The solution: These following steps will help you to solve this problem:

    1. Returning all declarations from the .cpp file to the .h life
    2. Declaring an external variable in the .h file
      Declaring that variable (without external) in .cpp file
    • 5
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Camila O'Kelly
    2022-05-26T04:03:32+00:00Added an answer on May 26, 2022 at 4:03 am

    The error message Qt Creator displays to you is misleading, until you get it figured out. However, it does not stop you from splitting the template class into a header file and an implementation file. This message is worth considering:

    Symbol(s) not found for architecture x86_64

    The problem, as I initially thought, was that it contains this error in the Issues output. This can lead users to believe that the problem is due the architecture. It’s actually saying that there is a function or a symbol, but no matching implementation was found.

    You can see which symbols are missing if you switch from Issues into the Comile Output window. Mine is displayed in red. It is just irritating that the Issues view doesn’t display the details of missing symbols.

    This error can be reproduced by simply adding a function definition to a header, and then calling the function from the.cpp files. This will result in something similar to the Issues window.

    symbol(s)%20not%20found%20for%20architecture%20x86_64

    This is the Compile Output view. Scroll up to see it:

    symbol(s)%20not%20found%20for%20architecture%20x86_64

    Now we can see that the problem is actually that the function DoSomeStuff of the class PGGui:PGGui is being called using the constructor PGGui.:PGGui. However, the body is missing as the symbol for DoSomeStuff has not been found.

    • 12
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.