Re: undefined reference????

From: John Carson (donaldquixote_at_datafast.net.au)
Date: 05/29/04


Date: Sat, 29 May 2004 19:17:05 +1000


"Codemutant" <codemutant@programmers.net> wrote in message
news:40b83654@post.usenet.com
> **** Post for FREE via your newsreader at post.usenet.com ****
>
> It is actually a program taken from an API documentation of "link
> parser" (www.link.cs.cmu.edu/link/)
>
> I was planning to use the API, but as you can see i got problems
> making the example program run. I have no clue of why the example
> given in the documentation should be wrong.. may be its because i got
> wrong somewhere in the installation of the link parser or any of its
> api files.. but i havent got a clue.
>

I am pretty sure that it is a setup/compiler issue. I went to here

http://www.link.cs.cmu.edu/link/ftp-site/link-grammar/link-4.1a/

and downloaded the Windows version. It compiled and ran without a problem.
Several files in the download have a main() function, but I established that
the one being used was parse.c. I removed it from the project and replaced
it with the example file that is giving you trouble. It too compiled and ran
without a problem.

I don't use gcc, so I can only guess what the problem might be. Is
"undefined reference" a compiler or a linker error? The Windows version
requires about 30 source files found in the src subdirectory. You need to
make sure that they are being compiled and linked as well.

-- 
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)


Relevant Pages

  • Re: Quick question about streams...?
    ... Okay, I don't mind learning all there is to learn, but wait a minute... ... And isn't the API a bunch of C functions? ... Whereby they made Windows out of C language right..... ... VC++ is a compiler that will compile C and C++ programs. ...
    (microsoft.public.vc.language)
  • Re: Looking for BASIC compiler
    ... The subject line is "Looking for BASIC compiler" and I ... It won't be as fast as a true compiler but in all other ... about the Windows API then BBC BASIC for Windows may be the ...
    (comp.lang.basic.misc)
  • Re: VB 6 compilation on Linux for execution on Windows and Linux
    ... make the result windows only. ... XBasic does include compiler directives that ... Linux, but if you do something that is Windows API, then you also need to ... do that for the Linux libs otherwise it will not be cross platform. ...
    (comp.lang.basic.visual.misc)
  • Re: Is compiler OS specific or Hardware specific....
    ... > is compiler OS specific or Hardware specific i.e processor specific.?? ... > but since the OS like windows are proprietary and don't reveal any ... Research more on "Win32 API." ... an emulator (called a virtual machine) for that non-existant ...
    (comp.programming)
  • Re: object system...
    ... [A C compiler cannot put a loop control variable in a register without ... and then later may assemble them into ... this whole API may be modified and redirected (in ... functionality it exports, but instead redirects it to the particular library ...
    (comp.object)

Loading