|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
_vsnprintf and Linux (Windows->Linux Conversion)
Okay, so...
I'm trying to convert some Windows C++ code to Linux. Its a big project that I'm tackling one C++ file at a time (to compile). Anyway, my new error is this: error: '_vsnprintf' was not declared in this scope So, after a small bit of research, I think that this function may be in the Windows API. I can't post the URL, so the best I can give you is http://msdn (dot) microsoft (dot) com /en-us/library/1kt27hek(VS.80).aspx Now, I was wondering if there was a Linux analog, or if I could create a header file or otherwise to import the needed code (found in the link, though it doesn't seem like the right code, and why would Microsoft publish such code anyway?) or if I could just straight up place the code that makes it work in the C++ file (which I doubt since it is likely huge) Last edited by wbest : June 23rd, 2009 at 12:02 PM. Reason: Typo |
|
#2
|
||||
|
||||
|
Probably the same, without the leading underscore.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. |
|
#3
|
|||
|
|||
|
Pardon the late reply, I just realized I should be saying what did and doesn't work, for other people to know.
Yes, this worked fine. I dropped the leading underscore and everything worked out OK. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > _vsnprintf and Linux (Windows->Linux Conversion) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|