__ftol2 ?? where did it come from? .NET?
-
Ok i just got the windows media DRM SDK delivered to me from MS. I added it into my project and now i get a linker error. error LNK2001: unresolved external symbol __ftol2 I also updated my MS Platform SDK a few dats ago (while i was trying to get a copy of the internet SDK , i didn't even want the upgrade) I've searched and heard that __ftol2 may have something to do with managed C++ and or .NET , can anyone tell me how to get around this. thanks. Jared Allen. www.chironexsoftware.com
-
Ok i just got the windows media DRM SDK delivered to me from MS. I added it into my project and now i get a linker error. error LNK2001: unresolved external symbol __ftol2 I also updated my MS Platform SDK a few dats ago (while i was trying to get a copy of the internet SDK , i didn't even want the upgrade) I've searched and heard that __ftol2 may have something to do with managed C++ and or .NET , can anyone tell me how to get around this. thanks. Jared Allen. www.chironexsoftware.com
Seems like the library you're trying to use is targeted at VC++ 7.0: a search on Usenet reveals that
__ftol
is an internal library of VC++ 7.0's C run-time library. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
Seems like the library you're trying to use is targeted at VC++ 7.0: a search on Usenet reveals that
__ftol
is an internal library of VC++ 7.0's C run-time library. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo_ftol is a function invoked when you do a double to long typecast. it's inserted automatically by the compiler:
; 38 :
; 39 : double t = 100.23;mov DWORD PTR \_t$\[ebp\], 1374389535 ; 51eb851fH mov DWORD PTR \_t$\[ebp+4\], 1079578296 ; 40590eb8H
; 40 : int l = t;
fld QWORD PTR \_t$\[ebp\] call \_\_ftol mov DWORD PTR \_l$\[ebp\], eax
i'm not sure what _ftol2 is about, but i suspect it's a .Net thing. i see it when i accidentally try to mix VC6 and VC7 .obj files. -c
Get there first with something patented, proprietary, and broken, then send lawyers after anyone who points out problems. --- Peter Gutmann
-
_ftol is a function invoked when you do a double to long typecast. it's inserted automatically by the compiler:
; 38 :
; 39 : double t = 100.23;mov DWORD PTR \_t$\[ebp\], 1374389535 ; 51eb851fH mov DWORD PTR \_t$\[ebp+4\], 1079578296 ; 40590eb8H
; 40 : int l = t;
fld QWORD PTR \_t$\[ebp\] call \_\_ftol mov DWORD PTR \_l$\[ebp\], eax
i'm not sure what _ftol2 is about, but i suspect it's a .Net thing. i see it when i accidentally try to mix VC6 and VC7 .obj files. -c
Get there first with something patented, proprietary, and broken, then send lawyers after anyone who points out problems. --- Peter Gutmann
Any idea how to get around it without using VC++ 7.0 ? The problem is I have a .lib file that references it, and i don't have the source. It's from MS I've tried to define the function __ftol long __ftol2(float x) { return (long)x; } But i still get the link problem, i think i'm putting it in the wrong place? put i should be able to have it in any .cpp file of the project? Jared Allen. www.chironexsoftware.com
-
Any idea how to get around it without using VC++ 7.0 ? The problem is I have a .lib file that references it, and i don't have the source. It's from MS I've tried to define the function __ftol long __ftol2(float x) { return (long)x; } But i still get the link problem, i think i'm putting it in the wrong place? put i should be able to have it in any .cpp file of the project? Jared Allen. www.chironexsoftware.com
sorry , i don't know. i always fix it with a rebuild-all, but since i'm not using any libs that i don't have the source to, there's no problem once everything is rebuilt with the same compiler. -c
Get there first with something patented, proprietary, and broken, then send lawyers after anyone who points out problems. --- Peter Gutmann