Thank you! Now I managed to created the brlapi.lib file and compiled my test program with Visual C++ 2008.
But it doesn't work properly with the xwindow diver (brltty -b xw): The program enters TTy mode (brlapi_enterTtyMode (BRLAPI_TTY_DEFAULT, NULL);) and outputs text onto the braille terminal (brlapi_writeText (0, txt);). This works only if the text contains only one character, but if it contains two or more characters, then only a '?' appears on the virtual braille display. If I compile the essentially same program with MinGW, it works as it should. BTW, I'd like to know: Against what have I linked the program when I used brlapi.lib? If I want to distribute the program later, what must be included? Greets, Thomas Marquardt > marqu...@studi.informatik.uni-stuttgart.de, le Tue 27 Jul 2010 16:36:41 > +0200, a écrit : >> I have added the library file "libbrlapi.a" to AdditionalDependencies. > > See README.first.txt: > > - C bindings are provided in include/ and lib/ (a .def file is provided > for > linking, run > lib /def:brlapi.def /name:brlapi-0.5.dll /out:brlapi.lib > to produce a brlapi.lib file suitable to your compiler) > >> 1>libbrlapi.a(brlapi_client.o) : error LNK2019: unresolved external >> symbol >> __alloca referenced in function _tryHost > > This is actually expected: libbrlapi.a is only for static linking, for > which you'd need to also link the MinGW helper library. Just link > against the .lib file and it should be fine. > > Samuel _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: BRLTTY@mielke.cc For general information, go to: http://mielke.cc/mailman/listinfo/brltty