ServerSocket.h and ServerException.h not found C++ [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 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.

Related

Linker Command failed with exit code 1 Xcode 9 [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
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.

What can I do if code::blocks shows error when I try to use graphics.h for c/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 5 years ago.
Improve this question
Today I tried to write a code using graphics.h in code::blocks. But instead of showing appropriate result, it showed "no such file or directory". But, isn't graphics.h is one of the header file of c/c++? So, if there is any solution, tell me what to do so that I can use it in code::blocks. Or, if you have any other better substitutive idea, it is sure to be appreciated.
Graphics.h is not a part of Standard C++. It is the main header for the Borland Graphics Library that originated with Borland C about 30 years ago. It has been obsolete for about 20 years.
C++ doesn't officially recognize the existence of pixels, so you need an external library to do graphics. It's against the rules to for me to do this, so don't tell anyone, but take a look at SDL.

C++ Change output executable name in code [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 have a question... Is it possible to somehow change output executable name in code? I mean something like
#ifdef COMPILE_DEBUG
...Name="Client_debug.exe"
#endif
Thanks in advance.
No. The C++ language doesn't provide any portable mechanism to do that.
Once you start talking about particular platforms, you change the executable name in the .vcxproj file (or whatever build system you are using) - which ends up changing options passed to the linker.
Some compilers have platform specific pragmas to pass options to the linker - they might be able to do this. But at that point you have to edit your .vcxproj file to pass suitable #defines in - why not just change the output file?

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.

libao compiling in window [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
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.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I downloaded the source of libao. Do I need to compile it into a library/dll for windows or do I use the source as is.
Has anyone done this before? libao is an audio library, which I found here: http://www.xiph.org/ao/
Like plenty of open source projets, you need to compile it first before using it, unless you want to keep every required source codes along with your project and compile them each time. This can be a mess since you can (and more likely will) alterate something in the library one day or another. For that reason, you should compile it into something then link to it.