![]() |
.. (לתיקייה המכילה) | |
Segmentation Fault | |
This means accessing memory at an illegal address. Probably accessing NULL pointer or some garbage-valued pointer. Can also happen when using free()/delete twice on the same memory location. Many times the exact location of the bug in your program is not where the program crashed. A bug can corrupt the memory, and the outcome will show only on the next access, that may be elsewhere. If it is not the trivial case of accessing a NULL pointer, you have to go through all the dynamic memory handling in your program. |
I compiled an "hello world" program, have an executable named "hello" but when I try to run it I receive "Command not found" | |
You are trying to run a program from the current directory. In some environments, the Unix does not search in the current directory when it looks for programs to execute; only system folders. You can correct it in two ways:
|
Bus Error | |
Same as Segmentation Fault, only the memory violation was detected in another part of the OS. |
ld: fatal: entry point symbol `rrors' is undefined | |
You compiled with "-pedantic -errors" instead of "-pedantic-errors". There is no space there. |
Eclipse is saying I have an error in a line which obviously has nothing wrong with it! What is happening? | |
Eclipse is still a little testy sometimes for C++, especially when working with templates. If you think Eclipse is wrong about something, try cleaning the project and recompiling it (Project->Clean). If the error persists, its not eclipse's fault. |
I'm getting an error saying a certain function is not implemented, however I did implement it! What might cause this? | |
There are two possible causes: a) The declaration and the implementation don't match. In this case, although the implementation exists, the compiler doesn't connect it with the declaration. b) You are using template functions, and you placed the implementation in the cpp file. Template functions and classes must be placed entirely in the header file (you may read why on the tutorial about templates). |