This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _bit_scan_forward


"Feike Boomstra" <f.p.boomstra@gmail.com> writes:

> I am new to Linux, I am using Kubuntu (AMD64) with KDevelop. I try to
> migrate a VC++ project to Linux. I am having problems with the
> built-in function _Bit_scan_forward.
> 
> 1) I can't find a headerfile defining this function.
> 2) If I define it myself, I get a link error: unresolved reference

If that function does what I think it does, then the Unix equivalent
would be ffs.

If that is the right answer, then this is not a gcc question, it is a
Windows to Unix porting question.  This is probably not the best
mailing list to ask such questions, as we are unlikely to know the
answer.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]