| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Linked List [2/2] |
I tested this class with the following program
===[USEDBL.CC]===
#include
#include
#include
#include "/prj/include/dbllist.cc"
int main()
{
char *word = NULL;
dbllist lex;
lex.append("roger",6);
lex.append("dodger",7);
lex.append("codger",7);
word=(char*)lex.gohead();
while (word) {
printf("%s\n",word);
word=(char *)lex.gonext();
}
lex.kill();
return 0;
}
=================
When I compile with "GCC -c -O USEDBL.CC", I get :
=====
[E:\PRJ\OS2]gcc -c -O usedbl.cc
/prj/include/dbllist.cc: In method `struct de_type* dbllist::create (void
*, uns igned int)':
In file included from usedbl.cc:4:
/prj/include/dbllist.cc:14: warning: implicit declaration of function `memmove' =====
When I try to link, I get
=====
E:\PRJ\OS2>link386 usedbl.obj;
Operating System/2 Linear Executable Linker
Version 2.02.001 Jun 09 1994
Copyright (C) IBM Corporation 1988-1993.
Copyright (C) Microsoft Corp. 1988-1993.
All rights reserved.
D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___CTOR_LIST__' :
unresolved e xternal
D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___DTOR_LIST__' :
unresolved e xternal
LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
There were 2 errors detected
=====
Of course, the EXE won't run, somebody knows why ? Please help me. I found
a "memmove" definition in the include file
?!{at}$*!{at} In some previous "first OS/2 port tries" of some of my
programs, I also encountered the ___CTOR_LIST__ stuff when trying to link.
Somebody can tell me what's exactly wrong then ?
Looking forward to some help,
* Dimitri
--- timEd/2-B10
* Origin: I'm too sexy for this origin (2:291/1301)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 291/1301 1928 292/850 293/2602 270/101 105/103 42 712/515 711/808 809 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.