|
From: Per W. <pw...@ia...> - 2005-05-18 15:27:09
|
Compilation without any errors means syntactically correct code, i.e. have nothing to do with bugs. Some potential bugs are detectable by the compiler and might result in warnings. However, bugs are logical errors resulting in failed execution of a program, or incorrect results being produced. In this case, you have any kind of memory reference error in the code. /Per W On Wed, 18 May 2005, Patel, Nilesh M wrote: > I have written a project in C++ and I am using a terminal to compile my code. When I compile my project using g++ (allFiles.cpp allFiles.h) -o ABC, NO bugs. When I try to run the project, I keep encountering this problem. "Segmentation fault" = = > I have no idea what this is? Does anyone know? Can anyone shed some light on this matter? What I am doing wrong? Do you think my serial path might be wrong? > > I have to run my project like so: ./ABC something /dev/ttyS0 > > ttyS0 or ttyS1 are desired serial paths. > > Thanks. |