If you have problems distributing a C++ application that is build
against standardized parts of C++, then you must be doing something
wrong, my friend.
If you have so many linkage problems, try linking statically.
If you already have problems on a source level, the preprocessor
is your friend.

And I also notice that some people on this thread seem to confuse
the STL and the C++ runtime a lot. That is quite confusing.
If the portability of the STL is actually the problem you could
always use STLPort.

I would assume that a program written in C might be more portable
than if it was written in C++. But it is of course a tradeoff.
Cause above mentioned streams will take a lot off your hands, for
the price of possibly consuming more resources. But you also
don't have to care about buffer sizes.

And nobody is stopping you from using printf in a C++ program anyway.
So this really is not so much about C vs C++ than it is about
programming practices.
One way or another. If you have allocated 1024 bytes for a buffer,
don't write 1025...

Saul Rennison wrote:
> I never said there was an issue compiling it. You will find that other  
> systems use different library versions for STL, surprisingly, and  
> cause linkage issues. I know this as I've tried distributing C++  
> Windows / Linux apps which use STL and it's a headache. I'm only  
> talking from first hand experiance.
>
> With Windows as I'm sure you'll know, STL is held in msvc8.dll (can't  
> remember the exact name) or maybe in CRT, I'm unsure, but that DLL is  
> distributed with your application and everyone uses the same binary.  
> In Windows, that is. In Linux it's a whole different story.
>
> Thanks,
> - Saul.
>
> On 18 Aug 2009, at 22:23, Stefan Popp <m...@stefanpopp.de> wrote:
>
>   
>> Sry, are you serious? I mean, are you serious?
>> STL = Standard template library
>>
>> You are serious we are talking 100% that?
>> If you really mean its not portable, you should buy a book about C++.
>>
>> For myself i prefer "Bjarne Stroustrup's C++"
>> STL is a part of C++. Every C++ compiler should understand it, because
>> STL is a standard part of C++ since 1993!
>> Which compiler did you use, that makes so many problems to port you're
>> application to other linux dist. or other operating systems?
>>
>> Best regards,
>> Stefan Popp
>>
>>
>> Saul Rennison schrieb
>>     
>>> If you knew anything about C++ you'd understand how unportable STL is
>>> across various Linux distributions, and how impossible it is to
>>> statically link it into the code.
>>>
>>> Thanks,
>>> - Saul.
>>>
>>> On 18 Aug 2009, at 21:03, Stefan Popp <m...@stefanpopp.de> wrote:
>>>
>>>
>>>       
>>>> Thats not right ;)
>>>>
>>>> The programming language is the problem in this case. Why should i
>>>> write
>>>> my code with functions that shouldnt be used with C++?
>>>> C++ works with the stdlib, which means streams. Not C stuff. So its
>>>> finally up to Valve to write programs which follows C++ standards
>>>> not C.
>>>> You cant trust your users as programmer. Its up to us, to make the
>>>> source safe, and if the projecttime needs 2 weeks more, you should
>>>> spend
>>>> the time.
>>>>
>>>>
>>>> Ronny Schedel schrieb:
>>>>
>>>>         
>>>>> The problem is not the programming language, the problem is that
>>>>> Valve trust
>>>>> their game clients too much.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> Well,
>>>>>>
>>>>>> Valve should start coding c++ with steams ;)
>>>>>> Who works with printfs today?
>>>>>>
>>>>>> I hope Valve will fix the whole source to prevent overflows.
>>>>>> C++ is you friend, not old C stuff...
>>>>>>
>>>>>> Best regards,
>>>>>> Stefan Popp
>>>>>>
>>>>>>
>>>>>> Claudio Beretta schrieb:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Thanks, anyone knows if a workaround is available?
>>>>>>>
>>>>>>> BTW: aren't "security researchers" supposed to contact the
>>>>>>> developers
>>>>>>> before
>>>>>>> releasing 0-day exploits?This is the 2nd 0-day exploy from aluigi
>>>>>>> in a
>>>>>>> few
>>>>>>> weeks -.-
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Aug 18, 2009 at 6:44 PM, Morgan Humes <mrh9...@lanaddict.com
>>>>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> A friend forwarded me this info regarding a vulnerability.  I am
>>>>>>>> unable
>>>>>>>> to
>>>>>>>> test this at the moment, but it does look like it is possible.
>>>>>>>> Thought
>>>>>>>> I
>>>>>>>> would get this out to the community before others start using
>>>>>>>> this to
>>>>>>>> cause
>>>>>>>> havoc.
>>>>>>>>
>>>>>>>> http://www.vupen.com/english/advisories/2009/2296
>>>>>>>> http://aluigi.altervista.org/adv/sourcefs-adv.txt
>>>>>>>>
>>>>>>>> Morgan Humes
>>>>>>>> _______________________________________________
>>>>>>>> To unsubscribe, edit your list preferences, or view the list
>>>>>>>> archives,
>>>>>>>> please visit:
>>>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>> _______________________________________________
>>>>>>> To unsubscribe, edit your list preferences, or view the list
>>>>>>> archives,
>>>>>>> please visit:
>>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> _______________________________________________
>>>>>> To unsubscribe, edit your list preferences, or view the list
>>>>>> archives,
>>>>>> please visit:
>>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>> _______________________________________________
>>>>> To unsubscribe, edit your list preferences, or view the list
>>>>> archives, please visit:
>>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>>
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> To unsubscribe, edit your list preferences, or view the list
>>>> archives, please visit:
>>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>>
>>>>         
>>> _______________________________________________
>>> To unsubscribe, edit your list preferences, or view the list  
>>> archives, please visit:
>>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>>
>>>       
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list  
>> archives, please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>     
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
>   


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to