Linker Command failed with exit code 1 Xcode 9 [closed] - c++

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
So I've gone through a lot of these same questions and none of them seem to work for me. I made a class that I use in my main called TokenClass.cpp. The project will build fine as long as I don't have #include "TokenClass.cpp" in there(The only issue being I can't use that class anymore.) I've tried deleting my DerivedData, and I this is my first project using xcode.

You should not
#include "TokenClass.cpp"
You should include header files only (.h). Seems like you have infinite recursive includes.

Related

error: use of deleted function ‘std::unordered_map [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
I've been working on some C++ code that a friend has written and I get the following error that I have never seen before when compiling with gcc11.1:
enter image description here
enter image description here
Generally speaking, what does this error mean? What should I be looking for when this type of error occurs?
I have tried to compile with several versions of gcc, but without much success

How to get more than 50 transitions in boost msm? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am using boost msm to implement HSM and I am at the point where the maximum number of transitions possible is 50. I looked at some blog posts and they said that if we create /mpl/vector/vector60.hpp, it should work. I tried and this is the error I get
I am wondering how I am generate these vector60, vector70.hpp .. files or map60, map70.hpp files so that I can get more transitions.

Basic example from chaiscript.com throws an exception at runtime [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I added the include directory of chaiscript to my Projects Additional Dependencies and compiled this example successfully.
If I execute it though, it throws this exception:
Unhandled exception at 0x753D5B68 in CHAISCRIPT_TEST.exe: Microsoft C++ exception: chaiscript::exception::load_module_error at memory location 0x0103F0D8.
After further testing around chaiscript seems to complain about not finding the module chaiscript_stdlib-5.8.0
How do I fix that?
Found the solution. The std_lib module has to be initialized the way the example shows.

ServerSocket.h and ServerException.h not found C++ [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
So I was writing some socket programming in C++. I'm new to the concept in general. I was following this tutorial, but when I go to compile it, my compiler g++ says the header files are not found. I'm on linux (Netrunner 14 Frontier), so I updated all my headers but I still get the error. Is there any way to fix this? If not, any recommendations for how to do socket programming in linux?
These files are not part of the Linux system. If you look at the bottom of the page, it says:
The following files make up our example:
Beneath that line is a list of links to other files / dependencies, including those ones.

size_t redefined in calcstar [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I need to use calcstar that is math expression evaluator...
I just simply include calcstar.h file and it include everything else
#include "calcstar.h"
but when I try to compile my code i get this error:
size_t redefined
This error appears inside calcstar's own files...but the point is that this library is published online so I assume it is tested and doesn't have a bug...
What is the problem? Am I doing something wrong?
I really need a mathematical expression evaluator for my project.
CalcStar, assuming you got it from here, was apparently developed using Visual Studio 2008 (the download file name is CalcStarApp_VS2008_03202014.zip.).
One of the quirks of Visual Studio is that it allows redefinition of typedefs. Other compilers (like the one you appear to be using) do not.
You'll need to modify code appropriately.