Announcement

Collapse
No announcement yet.

C++

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    C++

    I need some help!!
    I need c++ to work in X
    witch program is best?

    I have "Kdevelop C/C++"

    but when i shall compile i get this:
    aclocal
    aclocal: configure.in: 8: macro `AM_PROG_LIBTOOL' not found in library
    make: *** [all] Error 1
    *** Ended with status: 2 ***

    #2
    C++

    KDevelop is the best!

    What are you trying to do?

    Can you show us the code?

    [thread moved: HTNG->C/S]

    Comment


      #3
      C++

      to build the program!
      have tryed the "hello world" and SDL program..
      same problem on both.. am I missing a pakage??

      Comment


        #4
        C++

        Have you installed the "libx11-dev" package?

        If you are new to C++ you might what to read: http://mindview.net/Books/TICPP/ThinkingInCPP2e.html

        Comment


          #5
          C++

          yes i have libx11-dev.
          and thanks for he link but i got a book from my school.

          Comment


            #6
            C++

            solved it!
            installing libtool was the solution!

            Comment


              #7
              C++

              Originally posted by Dakilla
              yes i have libx11-dev.
              and thanks for he link but i got a book from my school.
              Just curious, but what is the book that your school has you learning from?
              Blog: Tasty Tidbits

              Comment


                #8
                Re: C++

                hi
                we are developing a complex simulation tool entirely written in C++. Just two things:
                • pay attention to memory leaks: in this case you should use the valgrind toolkit (http://valgrind.org/)
                • pay attention to the different optimizations

                i.e.
                Code:
                string s;
                s = ....;
                for (size_t i = 0; i < s.length(); s++) {...}
                this is not optimized, in fact each time the 'length()' method is called, thus taking time. if you consider that this method may be called many many times, you will have a reduction of the performance.
                an optimized version is:
                Code:
                string s;
                s = ....;
                size_t length = s.length();
                for (size_t i = 0; i < length(); s++) {...}

                Comment


                  #9
                  Re: C++

                  Gee Whiz! Whoopee!

                  I thought that only old dinosaurs like me, did by hand code optimizations. I assumed that all you young squirts had faith in your optimizing compilers. Next thing you know, someone will mention that if c++ was meant to be efficient, they would have called it ++c.

                  Comment


                    #10
                    Re: C++

                    C++ ftw
                    The only danish programming language
                    Oh and you aint the only doing by hand optimizations, i do to :P

                    Comment


                      #11
                      kdevelop help

                      Hello;

                      I'm very new to kdevelop and to C++ programming. I want to teach myself the language. I've downloaded the book links above and I've started to read volume 1.

                      Is kdevelop only a text editor for C++ source code? Since I also need a precompiler and compiler, what other programs would you all suggest I install?

                      I thought since kdevelop is an IDE, it would already have these necessary elements included. Is there any program that would allow me to write source, precompile, link, and compile all within the same development suite? Is there a better one than kdevelop?

                      Also, I'm curious about something; in Windoze, C++ source compiles to exe files. What are they going to compile to in Kubuntu, bin files?

                      Mark
                      "If you're in a room with another person who sees the world exactly as you do, one of you is redundant." Dr. Steven Covey, The 7-Habits of Highly Effective People

                      Comment


                        #12
                        Re: C++

                        Kdevelop should give you easy access to the compiler, debugger, plus syntax highlighting (which tons of editors do) and project management. There are others too, "better" is just up to your taste... try Anjuta or Eclipse. Each has advantages and disadvantages.
                        In Linux, just like in any other UNIX-like system, it's not the extension of a file which turns it into an executable, it's the executable bit attribute, which is set or unset. If you have a program but turns the executable bit off, you can't run it, thus you need to turn it on. The same applies for shell scripts, which you can set their bit to be executable, or just ask the shell to run it, like "sh the_script.sh".

                        And regarding the hand-made code optimizations, I also thought that I was the only one to do it, until I found out that trillions of programmers do it your own way. But I have been somewhat "free" from it with Fortran77/90/95, which have SIMD syntax and the compiler does the "durty" job, which is a strong point of this language in generating really fast math execution. When I go to C++, I miss the SIMD syntax, but I don't feel sorry, since it was not the goal of the language anyway.

                        Comment


                          #13
                          Re: C++

                          Dev-C++ is a nice GPL C/C++ Ide. Works on Windoze and Linux.
                          LINUX. IT&#39;S SO EASY, EVEN A PENGUIN CAN DO IT.

                          Comment

                          Working...
                          X