C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 23rd, 2009, 12:02 PM
wbest wbest is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 55 wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 15 h 25 m 7 sec
Reputation Power: 19
_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

Reply With Quote
  #2  
Old June 23rd, 2009, 02:08 PM
salem's Avatar
salem salem is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2005
Posts: 2,139 salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)salem User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 1 Month 2 Weeks 1 Day 23 h 22 m 21 sec
Reputation Power: 861
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.

Reply With Quote
  #3  
Old June 30th, 2009, 12:45 PM
wbest wbest is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 55 wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level)wbest User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 15 h 25 m 7 sec
Reputation Power: 19
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > _vsnprintf and Linux (Windows->Linux Conversion)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
Stay green...Green IT