Page 1 of 1

creating a qlb from c code can't find N_FTOL@ symbol

Posted: Wed Apr 17, 2013 8:36 pm
by jade52blue
I'm working on building a 3d rendering library in c / asm that qbasic can call down to. Essentially so I can have a "renderPolygons" function.

I'm building the c code in turbo C++ 3.0, but when i link it can't figure out how to convert floats to ints. I.E. "float b; int a = (int)b;" gives a linker error. This is troublesome as while I can compute all the data i need, when it comes time to actually blit the scanlines i'm at a loss how to avoid doing this.

Does anyone know what i should be linking this against? the libraries with turbo C don't seem to be very sensically named.

Posted: Sat Apr 20, 2013 7:15 pm
by jade52blue
figured it out - needed to extract some obj files from the tc libs. I can render much faster in qbasic now

Posted: Sat Apr 20, 2013 8:09 pm
by burger2227
Thanks for letting us know what the problem was. It may help somebody else.