RE: how to run C++ code on linux
-
Hi all, I have to develop XML parser using C++ on linux platform. Could you please help me... IF source code is available for the requirement... Thanks in advance..
-
Hi all, I have to develop XML parser using C++ on linux platform. Could you please help me... IF source code is available for the requirement... Thanks in advance..
-
Hi, I have to develop XML parser and i am using c,c++, lex and yacc and there are so many c++ programs are there in one folder and main program is editor.cpp and if i run this program is that ok.. Can i run that any where under any directory. is there only g++ command to run c++ code or any other method is available. Thanks for any help...
-
Hi, I have to develop XML parser and i am using c,c++, lex and yacc and there are so many c++ programs are there in one folder and main program is editor.cpp and if i run this program is that ok.. Can i run that any where under any directory. is there only g++ command to run c++ code or any other method is available. Thanks for any help...
No, there is, for example, the Intel compiler set(icc). However, as long as you assume that "g++ runs c++ code", I would suggest getting an introduction course first. C++ is a compiler, and as such, the binary output of the compiler itself is an executable. The compiler just translates it to machine code. If you are overwhelmed by the magnitude of the task, you might need to work on the basics first: What is C++? What is C? What does a compiler do? What does lex do? And yacc? How is an XML-file built? How do you read it? Could you read it yourself? What are the steps involved in reading? How do you write these steps in C? C++? etc.
Cheers, Sebastian -- "If it was two men, the non-driver would have challenged the driver to simply crash through the gates. The macho image thing, you know." - Marc Clifton
-
Hi, I have to develop XML parser and i am using c,c++, lex and yacc and there are so many c++ programs are there in one folder and main program is editor.cpp and if i run this program is that ok.. Can i run that any where under any directory. is there only g++ command to run c++ code or any other method is available. Thanks for any help...
savitha87k wrote:
I have to develop XML parser and i am using c,c++, lex and yacc
Are you doing for academic purpose? If not, I would recommend some existing XML libraries like TinyXML rather than reinventing wheel. Looks like you have no idea about what you are trying to do. Learn some basic stuff. Get a good IDE,
Code::Blocks
is a good one for beginners. Also learn toolchain[^] before you start some serious programming on LINUX. :)Navaneeth How to use google | Ask smart questions
-
Hi, I have to develop XML parser and i am using c,c++, lex and yacc and there are so many c++ programs are there in one folder and main program is editor.cpp and if i run this program is that ok.. Can i run that any where under any directory. is there only g++ command to run c++ code or any other method is available. Thanks for any help...
If I understand correctly, the thing you want to do it to create a symlink to your program in some directory that is "in the path". this can be done as such:
ln -s PATH_TO_THE_PROGRAM /usr/local/bin
where PATH_TO_THE_PROGRAM would be, for example "/home/username/myprograms/myprogram" and for "/usr/local/bin" this is dependant on what dist you are using. writingecho $PATH
in the command line will tell you what directories are on the path.