Page 1 of 3
LibVT
Posted: Wed Jan 22, 2020 2:31 pm
by SM7I
Hi !
Anyone got any luck with libvt on xtc68 ? I get Undefined Symbol: '___ANSICONF__' when trying to compile using -lvt. I know that libvt was written for C68, but....
I´m going nuts trying to find some kind of equivalent to a conio-like library.
Anyone solved this ?
Re: LibVT
Posted: Wed Jan 22, 2020 3:16 pm
by Peter
Probably stupid question, but did you include "ansicondef.h" in your source?
Re: LibVT
Posted: Wed Jan 22, 2020 3:39 pm
by SM7I
Yes, of course. Otherwise I’d get error instead...
Re: LibVT
Posted: Wed Jan 22, 2020 6:56 pm
by tofro
xtc68 uses the exact same libraries as C68 - No problem.
Can you give the command line you used to build your program?
Tobias
Re: LibVT
Posted: Wed Jan 22, 2020 7:44 pm
by SM7I
qcc -lvt test.c -o test
Re: LibVT
Posted: Wed Jan 22, 2020 11:00 pm
by tofro
SM7I wrote:qcc -lvt test.c -o test
Put the "-lvt" to the end of the command line and you should be fine.
Linker command lines are sensitive to the order of options. "-lvt" at the beginning tells the linker "first look for any unknown symbols in libvt_a and resolve all, then compile and link test.c with the standard libraries". At the point "-lvt" is done, there are no unknown symbols (yet, because test.c is compiled later), thus nothing from libvt is actually pulled into your program.
Tobias
Re: LibVT
Posted: Thu Jan 23, 2020 7:17 am
by SM7I
Hi Tobias,
Yeah, thanks. That solved the issue

If only all aspects of life was as simple as this....
Re: LibVT
Posted: Thu Jan 23, 2020 2:17 pm
by Derek_Stewart
Hi,
I was going to port ncurses to C68, do you think this would be of any use?
Re: LibVT
Posted: Thu Jan 23, 2020 4:36 pm
by tofro
Derek_Stewart wrote:Hi,
I was going to port ncurses to C68, do you think this would be of any use?
Of curse!
Re: LibVT
Posted: Thu Jan 23, 2020 5:28 pm
by SM7I
Derek_Stewart wrote:Hi,
I was going to port ncurses to C68, do you think this would be of any use?
Yes please.....