delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/19/12:22:39

From: schwenke AT htwm DOT de (Axel Schwenke)
Newsgroups: comp.os.msdos.djgpp
Subject: PDCURSES 2.2 Problem
Date: Sat, 19 Oct 96 15:22:57 GMT
Organization: Hochschule f. Technik und Wirtschaft Mittweida
Lines: 122
Message-ID: <54a6gc$4ca@strippe.htwm.de>
References: <53foi3$f2 AT strippe DOT htwm DOT de>
NNTP-Posting-Host: datamill.mpi.htwm.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi - it`s me again.

your postings were not very contructive yet. but i want to
clear some things up:

1. The program is far too long to post it. It`s named "Solver" 
   and helps deciphering messages which are enciphered
   by some oldfashioned method (vigenere,railfence,etc.)
   It consists of ca. 25 modules which nearly all #include 
   curses.h and must be linked against libcurses (no panels).
   If you are interested, you can download solver.zip from my
   Homepage: <http://www.htwm.de/~schwenke/solver.zip>

2. The proggy has no errors (as far I see). It compiles well under 
   LinuX (with ncurses) and also with BC3.1 (with pdcurses2.2).
   The makefile for LinuX is virtually the same, except the 
   names for the library (libcurses.a) and the executable itself.

3. I looked into libcurso.a with nm and it said me that the
   unsolved symbols are still in (yes as T(ext)) but the linker
   says they aren`t! Why?

4. The path for the library is o.k. pdcurses is in DJGPP2/CONTRIB/
   PDCURS22/... and the LIB subdir of this path is included in
   the DJGPP LIBRARY_PATH. Also the linker seems to find libcurso.a

5. I tried to recompile the library itself. It worked without any
   Problem (great stuff, those UN*X Makefiles) but the problem with
   solver is still the same.

For those of you which are interested in complete errormessages:

make invoked gcc with the following commandline:

gcc aristocr.o autokey.o bacon.o cadenus.o checker.o cipher.o columnar.o 
digram.o grandpre.o homo.o keyphras.o let_conv.o main.o morse.o nihilist.o 
phil.o quag.o rail.o slidefai.o swag.o term.o trans.o tridigit.o vig.o -lcurso 
 -o solver.exe

and gcc anwered:

aristocr.cc(.text+0xfef): undefined reference to `wgetch(_win *)'
aristocr.cc(.text+0x1007): undefined reference to `wgetch(_win *)'
aristocr.cc(.text+0x11ad): undefined reference to `wgetch(_win *)'
autokey.cc(.text+0xf20): undefined reference to `wgetch(_win *)'
bacon.cc(.text+0x921): undefined reference to `wgetch(_win *)'
bacon.cc(.text+0x955): more undefined references to `wgetch(_win *)' follow
main.cc(.text+0x887): undefined reference to `wrefresh(_win *)'
main.cc(.text+0x892): undefined reference to `wgetch(_win *)'
main.cc(.text+0x8d1): undefined reference to `wrefresh(_win *)'
morse.cc(.text+0x1587): undefined reference to `wgetch(_win *)'
morse.cc(.text+0x1651): undefined reference to `wgetch(_win *)'
morse.cc(.text+0x1669): undefined reference to `wgetch(_win *)'
morse.cc(.text+0x245d): undefined reference to `wgetch(_win *)'
morse.cc(.text+0x24f1): undefined reference to `wgetch(_win *)'
morse.cc(.text+0x2579): more undefined references to `wgetch(_win *)' follow
term.cc(.text+0x4): undefined reference to `initscr(void)'
term.cc(.text+0x2b): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x38): undefined reference to `endwin(void)'
term.cc(.text+0xb3): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0xd2): undefined reference to `waddstr(_win *, char *)'
term.cc(.text+0xe0): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x100): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x120): undefined reference to `PDC_chadd(_win *, unsigned long, 
bool, bool)'
term.cc(.text+0x146): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x151): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x170): undefined reference to `waddstr(_win *, char *)'
term.cc(.text+0x196): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x1a1): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x1c9): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x1d4): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x1f3): undefined reference to `waddstr(_win *, char *)'
term.cc(.text+0x201): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x236): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x241): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x260): undefined reference to `waddstr(_win *, char *)'
term.cc(.text+0x26e): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x295): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x2a0): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x2b4): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x2d3): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x2de): undefined reference to `wclrtobot(_win *)'
term.cc(.text+0x2e9): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x30a): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x315): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x33c): undefined reference to `wmove(_win *, int, int)'
term.cc(.text+0x347): undefined reference to `wclrtoeol(_win *)'
term.cc(.text+0x363): undefined reference to `wgetch(_win *)'
term.cc(.text+0x37e): undefined reference to `erasechar(void)'
term.cc(.text+0x3ab): undefined reference to `PDC_chadd(_win *, unsigned long, 
bool, bool)'
term.cc(.text+0x3b6): undefined reference to `wdelch(_win *)'
term.cc(.text+0x3df): undefined reference to `PDC_chadd(_win *, unsigned long, 
bool, bool)'
term.cc(.text+0x3ea): undefined reference to `wdelch(_win *)'
term.cc(.text+0x40e): undefined reference to `PDC_chadd(_win *, unsigned long, 
bool, bool)'
term.cc(.text+0x41d): undefined reference to `wrefresh(_win *)'
term.cc(.text+0x466): undefined reference to `wmove(_win *, int, int)'
tridigit.cc(.text+0x189): undefined reference to `wgetch(_win *)'
tridigit.cc(.text+0x1a0): undefined reference to `wgetch(_win *)'
tridigit.cc(.text+0x585): undefined reference to `wgetch(_win *)'
vig.cc(.text+0x44c): undefined reference to `wgetch(_win *)'
make.exe: *** [solver] Error 1


and now again: does anybody know whats wrong? How to get it working?

Still waiting for help - AxEL

 

Neue BIOS Meldung:                                               ||//
WARNING: System In Danger - Detected Win 95 on HD.             ( o o )
-----------------------------------------------------------oOOO--(_)--OOOo--
Axel Schwenke, HTW Mittweida, Fachgruppe Mathematik
Tel.: +49 (0)3727 58 1308                                 .oooO
Mail: schwenke AT htwm DOT de,  WWW: www.htwm.de/~schwenke       (   )   Oooo.
-----------------------------------------------------------\ (----(   )-----
Windows 95 ist jetzt mutitaskingfaehig:                     \_)    ) /
Es kann zur gleichen Zeit booten und abstuerzen !                 (_/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019