i386_get_ioperm syntax....
Eric De la Cruz Lugo
eric at iteso.mx
Sat Apr 3 09:33:48 PST 2004
Hi, am not on the list, please reply to my e-mail for possible solutions.
I have this problem compiling a code:
terra# make
make all-recursive
Making all in m4
Making all in src
if g++ -DREENTRANT -I. -I. -I.. -O6 -I/usr/include/bhpos -O6 -I/usr/
include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/
lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/
usr/X11R6/include -I/usr/local/include/sigc++-1.0 -I/usr/include/bhpos/hw
-I/usr/include/bhpos/widget -g -O2 -MT callbacks.o -MD -MP -MF ".deps/
callbacks.Tpo" -c -o callbacks.o `test -f 'callbacks.cc' || echo
'./'`callbacks.cc; then mv ".deps/callbacks.Tpo" ".deps/callbacks.Po"; else
rm -f ".deps/callbacks.Tpo"; exit 1; fi
callbacks.cc: In member function `int CPost::DeviceControl(int, int)':
callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*'
callbacks.cc:160: error: invalid conversion from `int' to `int*'
callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*'
*** Error code 1
Stop in /home/eric/banana/post-1.2.1/src.
*** Error code 1
Stop in /home/eric/banana/post-1.2.1.
*** Error code 1
Stop in /home/eric/banana/post-1.2.1.
terra#
-------
the relevant lines are :
else if(flags==5){
return i386_get_ioperm(0x3F8, 6, 1);
}
else if(flags==6){
return i386_get_ioperm(0x3F8, 6, 0);
}
and:
else if(flags==5){
i386_set_ioperm(0x2F8, 6, 1);
}
else if(flags==6){
i386_set_ioperm(0x2F8, 6, 0);
}
-------
some knows how to solve something like this?, am not a c++ programmer, if
someone can give me a hint about what the right values for the
i386_get_ioperm() should be in FreeBSD 5.2.1, please reply to my e-mail.
thanks in advance.
Eric De La Cruz Lugo.
Merida, Yucatan, Mexico
---
More information about the freebsd-questions
mailing list