LibVT

Anything QL Software or Programming Related.
SM7I
ROM Dongle
Posts: 41
Joined: Mon Dec 10, 2012 6:52 pm

LibVT

Post 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 ?


User avatar
Peter
QL Wafer Drive
Posts: 1953
Joined: Sat Jan 22, 2011 8:47 am

Re: LibVT

Post by Peter »

Probably stupid question, but did you include "ansicondef.h" in your source?


SM7I
ROM Dongle
Posts: 41
Joined: Mon Dec 10, 2012 6:52 pm

Re: LibVT

Post by SM7I »

Yes, of course. Otherwise I’d get error instead...


User avatar
tofro
Font of All Knowledge
Posts: 2688
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: LibVT

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
SM7I
ROM Dongle
Posts: 41
Joined: Mon Dec 10, 2012 6:52 pm

Re: LibVT

Post by SM7I »

qcc -lvt test.c -o test


User avatar
tofro
Font of All Knowledge
Posts: 2688
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: LibVT

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
SM7I
ROM Dongle
Posts: 41
Joined: Mon Dec 10, 2012 6:52 pm

Re: LibVT

Post by SM7I »

Hi Tobias,

Yeah, thanks. That solved the issue :) If only all aspects of life was as simple as this....


Derek_Stewart
Font of All Knowledge
Posts: 3932
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: LibVT

Post by Derek_Stewart »

Hi,

I was going to port ncurses to C68, do you think this would be of any use?


Regards,

Derek
User avatar
tofro
Font of All Knowledge
Posts: 2688
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: LibVT

Post 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!


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
SM7I
ROM Dongle
Posts: 41
Joined: Mon Dec 10, 2012 6:52 pm

Re: LibVT

Post 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.....


Post Reply