Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. RE: how to run C++ code on linux

RE: how to run C++ code on linux

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
c++linuxxmlhelptutorial
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    savitha87k
    wrote on last edited by
    #1

    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..

    D 1 Reply Last reply
    0
    • S savitha87k

      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..

      D Offline
      D Offline
      Divyang Mithaiwala
      wrote on last edited by
      #2

      What is the issue? Compiler issue? You can use gcc/g++[^] along with gdb[^].


      Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer

      S 1 Reply Last reply
      0
      • D Divyang Mithaiwala

        What is the issue? Compiler issue? You can use gcc/g++[^] along with gdb[^].


        Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer

        S Offline
        S Offline
        savitha87k
        wrote on last edited by
        #3

        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...

        S N C 3 Replies Last reply
        0
        • S savitha87k

          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...

          S Offline
          S Offline
          Sebastian Schneider
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • S savitha87k

            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...

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • S savitha87k

              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...

              C Offline
              C Offline
              cludwig146
              wrote on last edited by
              #6

              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. writing echo $PATH in the command line will tell you what directories are on the path.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups