Re: undefined reference????
From: John Carson (donaldquixote_at_datafast.net.au)
Date: 05/29/04
- Next message: Klaus Eichner: "Re: Confusing compile error"
- Previous message: Pmb: "Re: Overloading the "=" operator for Complex numbers"
- In reply to: Codemutant: "Re: undefined reference????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Next message: Klaus Eichner: "Re: Confusing compile error"
- Previous message: Pmb: "Re: Overloading the "=" operator for Complex numbers"
- In reply to: Codemutant: "Re: undefined reference????"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|