undefined reference error

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

    #31
    Re: undefined reference error

    Howard wrote:[color=blue]
    > "Stephan Brönnimann" <broeni@hotmail .com> wrote in message
    > news:1139254644 .554297.279670@ z14g2000cwz.goo glegroups.com.. .[color=green]
    >> Victor Bazarov wrote:[color=darkred]
    >>> The error is on the line 42 of your source code.[/color]
    >> Just for the fun of it: what's behind the magic number 42?
    >> It's now the 2nd time within a few days I've seen it.
    >> Could I use my personal favorite 27 instead (smiling)?
    >> Cheers, Stephan
    >>[/color]
    >
    > Check (or Google) "The Hitchhiker's Guide to the Galaxy". It's a _very_
    > important number! :-)
    >
    > -Howard
    >[/color]

    Perhaps as an alternative, we could tell people that they have errors on
    lines 4, 8, 15, 16, 23, and 42?

    Comment

    • vfunc@talktalk.net

      #32
      Re: undefined reference error

      So how do I link a file ? In this case say that I am including
      "audiere.h" and in audiere.cpp there is a reference to device.cpp and
      device.cpp is included at the top of audiere.cpp.

      Comment

      • vfunc@talktalk.net

        #33
        Re: undefined reference error

        "In article <Xns9762681A671 29nntpspamkostu rnet@207.35.177 .134>,
        Andre Kostur <nntpspam@kostu r.net> wrote:
        [color=blue]
        > So far you've told the compiler to compile mytest.cpp, and to make an
        > executable. You've mentioned where your libraries are, but you haven't
        > told the compiler which libraries to use.[/color]

        My guess is he never compiled the audiere library after he d/l'ed it
        from sourceforge"

        There are different versions of the source.
        1 is does not compile withoug java, xpcom and VC6. At least that is if
        you want to bind it to java and xpcom, VC6 I don't know. Another file
        has the windows source and this already has executables and a lib file,
        do I need to recompile this?

        Comment

        • vfunc@talktalk.net

          #34
          Re: undefined reference error

          "Markus Moll
          Feb 6, 6:45 pm show options

          Thanks for the confirmation. "


          How can your file welcome me? You use too many similies or labels,
          talk in English! I don't understand what you are on about.

          Comment

          • vfunc@talktalk.net

            #35
            Re: undefined reference error

            Link as in
            g++ mytest.cpp -I ../src ../lib/audiere.lib -o mytest.exe
            or
            g++ mytest.cpp -I ../src -L ../lib/audiere.lib -o mytest.exe

            neither of these worked there were still unresolved references.
            I think the problem is that
            there are includes off includes in this project and these are not being
            linked.

            Comment

            • Andre Kostur

              #36
              Re: undefined reference error

              "vfunc@talktalk .net" <vfunc@talktalk .net> wrote in
              news:1139363799 .139714.40320@g 43g2000cwa.goog legroups.com:
              [color=blue]
              > So how do I link a file ? In this case say that I am including
              > "audiere.h" and in audiere.cpp there is a reference to device.cpp and
              > device.cpp is included at the top of audiere.cpp.[/color]

              Now you're getting beyond the scope of this newsgroup. Time to head over
              to gnu.gcc.help for more detailed (and implementation-specific) answers to
              your questions. comp.lang.c++ is for discussing the language itself. How
              to use a specific compiler is better served in a newsgroup dedicated to
              that compiler.

              Comment

              • vfunc@talktalk.net

                #37
                Re: undefined reference error

                "Victor Bazarov wrote:[color=blue]
                > The error is on the line 42 of your source code.[/color]

                Just for the fun of it: what's behind the magic number 42?
                It's now the 2nd time within a few days I've seen it.
                Could I use my personal favorite 27 instead (smiling)?
                Cheers, Stephan "


                42 is the answer to everything in the story, but if I remember
                correctly it originates in from a game of scrabble. I guess Adams got
                the idea from 41 which has some unusual mathematical properties. Phhh,
                what the hell do I know anyway?

                Comment

                • Jim Langston

                  #38
                  Re: undefined reference error


                  <vfunc@talktalk .net> wrote in message
                  news:1139366374 .018476.61850@g 44g2000cwa.goog legroups.com...[color=blue]
                  > "Victor Bazarov wrote:[color=green]
                  >> The error is on the line 42 of your source code.[/color]
                  >
                  > Just for the fun of it: what's behind the magic number 42?
                  > It's now the 2nd time within a few days I've seen it.
                  > Could I use my personal favorite 27 instead (smiling)?
                  > Cheers, Stephan "
                  >
                  >
                  > 42 is the answer to everything in the story, but if I remember
                  > correctly it originates in from a game of scrabble. I guess Adams got
                  > the idea from 41 which has some unusual mathematical properties. Phhh,
                  > what the hell do I know anyway?[/color]

                  Umm.. no. Arther Dent got the question to the answer 42 from a game of
                  scrabble. Seems the earth was just a hugh computer built to find out what
                  the true question to the answer 42 was. Kinda funny actually, I won't say
                  what the true question was cause it's a spoiler, and people really should
                  read the Hitchhikers trilogy (with 4 books in it).


                  Comment

                  • vfunc@talktalk.net

                    #39
                    Re: undefined reference error

                    Well some people have turned that idea on its head, if they run a
                    simulation say like a climate model for a period of time and then look
                    at the difference between the climate model and the simulation then in
                    a way... like...

                    Comment

                    • Sjouke Burry

                      #40
                      Re: undefined reference error

                      vfunc@talktalk. net wrote:[color=blue]
                      > "Victor Bazarov wrote:
                      >[color=green]
                      >>The error is on the line 42 of your source code.[/color]
                      >
                      >
                      > Just for the fun of it: what's behind the magic number 42?
                      > It's now the 2nd time within a few days I've seen it.
                      > Could I use my personal favorite 27 instead (smiling)?
                      > Cheers, Stephan "
                      >
                      >
                      > 42 is the answer to everything in the story, but if I remember
                      > correctly it originates in from a game of scrabble. I guess Adams got
                      > the idea from 41 which has some unusual mathematical properties. Phhh,
                      > what the hell do I know anyway?
                      >[/color]
                      "the hitchhikers guide to the galaxy" SF book carries
                      a story about a gigacomputer calculating the answer
                      to everything.
                      It tells them : 42.
                      When people complained about the answer, the computer
                      told them they should have asked the right question.

                      Comment

                      • vfunc@talktalk.net

                        #41
                        Re: undefined reference error

                        Maybe there should be two questions, that was the second. What was the
                        first?

                        Comment

                        Working...