473,378 Members | 1,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

undefined reference????

**** Post for FREE via your newsreader at post.usenet.com ****

I just cannot find what is undefined in this code.

#include "link-includes.h"

int main() {

Dictionary dict;
Parse_Options opts;
Sentence sent;
Linkage linkage;
char * diagram;
int i, num_linkages;
char * input_string[] = {
"Grammar is useless because there is nothing to say -- Gertrude
Stein.",
"Computers are useless; they can only give you answers -- Pablo
Picasso."};

opts = parse_options_create();
dict = dictionary_create("4.0.dict", "4.0.knowledge", NULL,
"4.0.affix");

for (i=0; i<2; ++i) {
sent = sentence_create(input_string[i], dict);
num_linkages = sentence_parse(sent, opts);
if (num_linkages > 0) {
linkage = linkage_create(0, sent, opts);
printf("%s\n", diagram = linkage_print_diagram(linkage));
string_delete(diagram);
linkage_delete(linkage);
}
sentence_delete(sent);
}

dictionary_delete(dict);
parse_options_delete(opts);
return 0;
}



Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\intellibase\linksample.cpp" -o
"C:\intellibase\linksample.exe" -ansi -traditional-cpp -fexceptions
-pg -g3 -I"C:\link-4.1\include" -I"C:\DEV-CPP\include\c++"
-I"C:\DEV-CPP\include\c++\mingw32" -I"C:\DEV-CPP\include\c++\backward"
-I"C:\DEV-CPP\include" -L"C:\DEV-CPP\lib"

C:/intellibase/linksample.cpp:15: undefined reference to
`parse_options_create()'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x11e):C:/intellibase/linksample.cpp:16:
undefined reference to `dictionary_create(char*, char*, char*, char*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x148):C:/intellibase/linksample.cpp:19:
undefined reference to `sentence_create(char*, Dictionary_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x15c):C:/intellibase/linksample.cpp:20:
undefined reference to `sentence_parse(Sentence_s*, Parse_Options_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x178):C:/intellibase/linksample.cpp:22:
undefined reference to `linkage_create(int, Sentence_s*,
Parse_Options_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x18c):C:/intellibase/linksample.cpp:23:
undefined reference to `linkage_print_diagram(Linkage_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1ad):C:/intellibase/linksample.cpp:24:
undefined reference to `string_delete(char*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1bb):C:/intellibase/linksample.cpp:25:
undefined reference to `linkage_delete(Linkage_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1c9):C:/intellibase/linksample.cpp:27:
undefined reference to `sentence_delete(Sentence_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1e1):C:/intellibase/linksample.cpp:30:
undefined reference to `dictionary_delete(Dictionary_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1ef):C:/intellibase/linksample.cpp:31:
undefined reference to `parse_options_delete(Parse_Options_s*)'Execution
terminated
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jul 22 '05 #1
1 3117
"Codemutant" <co********@programmers.net> wrote in message
news:40******@post.usenet.com
**** Post for FREE via your newsreader at post.usenet.com ****

I just cannot find what is undefined in this code.

Perhaps reading the error message would help

C:/intellibase/linksample.cpp:15: undefined reference to
`parse_options_create()'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x11e):C:/intellibase/linksample.cpp:16:
undefined reference to `dictionary_create(char*, char*, char*, char*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x148):C:/intellibase/linksample.cpp:19:
undefined reference to `sentence_create(char*, Dictionary_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x15c):C:/intellibase/linksample.cpp:20:
undefined reference to `sentence_parse(Sentence_s*, Parse_Options_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x178):C:/intellibase/linksample.cpp:22:
undefined reference to `linkage_create(int, Sentence_s*,
Parse_Options_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x18c):C:/intellibase/linksample.cpp:23:
undefined reference to `linkage_print_diagram(Linkage_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1ad):C:/intellibase/linksample.cpp:24:
undefined reference to `string_delete(char*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1bb):C:/intellibase/linksample.cpp:25:
undefined reference to `linkage_delete(Linkage_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1c9):C:/intellibase/linksample.cpp:27:
undefined reference to `sentence_delete(Sentence_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1e1):C:/intellibase/linksample.cpp:30:
undefined reference to `dictionary_delete(Dictionary_s*)'
C:\WINDOWS\TEMP/ccIARjgb.o(.text+0x1ef):C:/intellibase/linksample.cpp:31:
undefined reference to
`parse_options_delete(Parse_Options_s*)'Execution terminated

This lists what is undefined, so what is the problem?
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: RU | last post by:
Hi, I am working on a porting project to port C/C++ application from unixware C++, AT&T Standard components to g++ with STL on Linux. This application has been working properly on...
13
by: david | last post by:
Hi, I have some problems to link a simple hello world program using g++ (version 3.2.3 or 3.3) and dinkumware 402. //hallo world... #include <iostream> main () { std::cout << "bla" <<...
1
by: Foolster41 | last post by:
I'm rather new to C++ programing. I'm using the dev-C++ program on a windows XP OS. I'm trying to compile the code for a multi user dungeon (MUD) called circle-mud. When I compile I get the...
1
by: Dom | last post by:
I'm new to c++. Just started learning it 24 hours ago. Am running into a compile problem. Please, no one waste the effort telling me to google it. I've been researching it for quite a while with no...
1
by: Andre Janssen | last post by:
Hi.... I tried to compile the following src with this command: "g++ -Wall -o bla alsaswitch.cpp". The src is an example src of xosd package. #include <xosd.h> int main (int argc, char...
3
by: Michael Sgier | last post by:
Hi i get thousands of messages like below. How shall i resolve that? Thanks Mcihael Release/src/Utility/RawImage.o: In function `CMaskImage::CMaskImage(int, int, char const*)':...
45
by: VK | last post by:
(see the post by ASM in the original thread; can be seen at <http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/3716384d8bfa1b0b> as an option) As that is not in relevance to...
3
by: prakash.mirji | last post by:
Hello, I am getting below mention linker error when I tried to link my class test.C I use below command to compile test.C /usr/bin/g++ -g -fpic -fvisibility=default -D_POSIX_SOURCE...
2
by: zqiang320 | last post by:
Hello: I execute make ,then get error: $ make Making all in libsbml/src make: Entering directory `/home/internet/mydoc/test_pj/libsbml/src' ........ /bin/sh ./libtool --tag=CC --mode=link...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.