¡@

Home 

c++ Programming Glossary: portability

Seeking and reading large files in a Linux C++ application

http://stackoverflow.com/questions/1035657/seeking-and-reading-large-files-in-a-linux-c-application

types and to not use e.g. int instead of off_t. For portability with other platforms you should use getconf LFS_CFLAGS which..

Getting a FILE* from a std::fstream

http://stackoverflow.com/questions/109449/getting-a-file-from-a-stdfstream

this is not a POSIX API it a BSD extension so its portability is in question. Which is also probably why I can't find anybody..

Is it true that there is no need to learn C because C++ contains everything? [closed]

http://stackoverflow.com/questions/145096/is-it-true-that-there-is-no-need-to-learn-c-because-c-contains-everything

explicit cast int i int malloc sizeof int 5 Another common portability issue is that C defines many new keywords such as new and class..

What is the best encryption library in C/C++? [closed]

http://stackoverflow.com/questions/180870/what-is-the-best-encryption-library-in-c-c

in C C In terms of entropy quality ease of use readability portability performance What's your favorite and why do you like it c c..

In C++, is it safe/portable to use static member function pointer for C API callbacks?

http://stackoverflow.com/questions/2068022/in-c-is-it-safe-portable-to-use-static-member-function-pointer-for-c-api-call

member function the same as a C function c callback portability share improve this question It is not safe per the C standard...

gcc - significance of -pthread flag when compiling

http://stackoverflow.com/questions/2127797/gcc-significance-of-pthread-flag-when-compiling

On other platforms this could differ. Use pthread for most portability. Using _REENTRANT on GNU libc changes the way some libc headers..

Is it reasonable to use std::basic_string<t> as a contiguous buffer when targeting C++03?

http://stackoverflow.com/questions/2256160/is-it-reasonable-to-use-stdbasic-stringt-as-a-contiguous-buffer-when-targeti

return buffer I know code like this might slightly reduce portability because it implies that std wstring is contiguous but I'm wondering..

Does the size of an int depend on the compiler and/or processor?

http://stackoverflow.com/questions/2331751/does-the-size-of-an-int-depend-on-the-compiler-and-or-processor

value it can be used to perform run time tests of the portability of C C programs. But that's where the practical usefulness of..

Calling class method through NULL class pointer

http://stackoverflow.com/questions/2505328/calling-class-method-through-null-class-pointer

Is there a replacement for unistd.h for Windows (Visual C)?

http://stackoverflow.com/questions/341817/is-there-a-replacement-for-unistd-h-for-windows-visual-c

at work I'm stuck with Visual Studio. c c windows portability unistd.h share improve this question Since we can't find..

What belongs in an educational tool to demonstrate the unwarranted assumptions people make in C/C++?

http://stackoverflow.com/questions/3457967/what-belongs-in-an-educational-tool-to-demonstrate-the-unwarranted-assumptions-p

I will merge them into gotcha.c then. c c cross platform portability share improve this question The order of evaluation of subexpressions..

Why can't I have a non-integral static const member in a class?

http://stackoverflow.com/questions/370283/why-cant-i-have-a-non-integral-static-const-member-in-a-class

symbols X d g a.cc b.cc O1 o a # Succeeds For maximal portability you should declare your constants in header files and define..

What techniques can be used to speed up C++ compilation times?

http://stackoverflow.com/questions/373142/what-techniques-can-be-used-to-speed-up-c-compilation-times

#endif By using both the pragma and the ifndef you get the portability of the plain macro solution as well as the compilation speed..

Is it possible to program for Windows Phone 7 in standard C++ only?

http://stackoverflow.com/questions/4539876/is-it-possible-to-program-for-windows-phone-7-in-standard-c-only

Windows Phone 8 yes you can. Native apps C C iOS Android portability and code sharing DirectX. You'll need Visual Studio 2012 and..

mmap() vs. reading blocks

http://stackoverflow.com/questions/45972/mmap-vs-reading-blocks

in a portable way is to use mmap . If you don't care about portability and you can rely on the particular characteristics of your target..

Why is the linux kernel not implemented in C++? [closed]

http://stackoverflow.com/questions/520068/why-is-the-linux-kernel-not-implemented-in-c

lot of discipline to achieve. See the now historic Mozilla portability guide for insight into the lengths that programmers go to to..

WChars, Encodings, Standards and Portability

http://stackoverflow.com/questions/6300804/wchars-encodings-standards-and-portability

C there are two groups of things related respectively to portability and serialization wchar_t setlocale mbsrtowcs wcsrtombs The..

Thread safe lazy construction of a singleton in C++

http://stackoverflow.com/questions/6915/thread-safe-lazy-construction-of-a-singleton-in-c

to use an atomic compare and swap would certainly work. If portability is not an issue and creating additional temporary singletons..

Convert between string, u16string & u32string

http://stackoverflow.com/questions/7232710/convert-between-string-u16string-u32string

by locale. So wchar_t seems to me to be a bad choice for portability and Unicode. Some better options have been introduced in C 11..

size_t vs container::size_type

http://stackoverflow.com/questions/918567/size-t-vs-containersize-type

Is there any way to fully emulate thread_local using GCC's __thread?

http://stackoverflow.com/questions/12063073/is-there-any-way-to-fully-emulate-thread-local-using-gccs-thread

functions in the hot path. I'm using GCC and Linux. Portability is not required. c gcc c 11 thread local share improve this..

Visual Studio support for new C / C++ standards?

http://stackoverflow.com/questions/146381/visual-studio-support-for-new-c-c-standards

or gcc and use Eclipse for your programming environment. Portability of code across Windows Linux Solaris AIX etc is usually important..

Portability of #warning preprocessor directive

http://stackoverflow.com/questions/171435/portability-of-warning-preprocessor-directive

of #warning preprocessor directive I know that the #warning..

Rendering issue with different computers

http://stackoverflow.com/questions/18064988/rendering-issue-with-different-computers

char types Error Deprecated Behavior Undefined Behavior Portability Performance Other Unknown int str_idx min type GL_DEBUG_TYPE_ERROR..

Chipmunk Physics or Box2D for C++ 2D GameEngine?

http://stackoverflow.com/questions/2707106/chipmunk-physics-or-box2d-for-c-2d-gameengine

not concave . I value 1 Good API's 2 Easy to integrate. 3 Portability. And of course if you notice anything else I would love to hear..

Is there an open-source alternative to Windows compound files?

http://stackoverflow.com/questions/374417/is-there-an-open-source-alternative-to-windows-compound-files

format are 1. Size Allow files bigger than 4GB. 2. Portability It should be feasible to open the container files on other platforms...

Portability of binary serialization of double/float type in C++

http://stackoverflow.com/questions/4733147/portability-of-binary-serialization-of-double-float-type-in-c

of binary serialization of double float type in C The C standard..

signal handling

http://stackoverflow.com/questions/4863420/signal-handling

is reset to SIG_DFL or the signal is blocked see Portability below and then handler is called with argument signum. If invocation..

.c vs .cc vs. .cpp vs .hpp vs .h vs .cxx [duplicate]

http://stackoverflow.com/questions/5171502/c-vs-cc-vs-cpp-vs-hpp-vs-h-vs-cxx

make the choice difficult if not impossible to configure. Portability consideration made that choice the most common even outside..

Why is the linux kernel not implemented in C++? [closed]

http://stackoverflow.com/questions/520068/why-is-the-linux-kernel-not-implemented-in-c

C is a much simpler and easier language to implement. Portability of C code between compilers has been far better. Portability.. of C code between compilers has been far better. Portability of C code was long something that required a lot of discipline..

struct padding in c++

http://stackoverflow.com/questions/5397447/struct-padding-in-c

his book Essential COM chapter COM As A Better C C and Portability Once the decision is made to distribute a C class as a DLL one..

Portability of Native C++ properties

http://stackoverflow.com/questions/5772480/portability-of-native-c-properties

of Native C properties In Visual Studio there is __declspec..

Portable C++ Stack Trace on Exception

http://stackoverflow.com/questions/616653/portable-c-stack-trace-on-exception

improve this question I think this is a really bad idea. Portability is a very worthy goal but not when it results in a solution..

WChars, Encodings, Standards and Portability

http://stackoverflow.com/questions/6300804/wchars-encodings-standards-and-portability

Encodings Standards and Portability The following may not qualify as a SO question if it is out.. C and thus C and C 0x . First off an important observation Portability and serialization are orthogonal concepts. Portable things are.. or wrappers like Boost.Filesystem or Qt instead. Portability is extremely hard to achieve especially for Unicode support...

C++ Boost: Any gotchas with BOOST_FOREACH?

http://stackoverflow.com/questions/716865/c-boost-any-gotchas-with-boost-foreach

of the rationale The Pitfalls section of documentation The Portability section just in case you are developing cross platform products..

c++: Format number with commas?

http://stackoverflow.com/questions/7276826/c-format-number-with-commas

std locale ss std fixed value return ss.str Disclaimer Portability might be an issue and you should probably look at which locale..

How to reduce the size of executable produced by MinGW g++ compiler?

http://stackoverflow.com/questions/7973274/how-to-reduce-the-size-of-executable-produced-by-mingw-g-compiler

Is there any way how to achieve this using MinGW compiler Portability is not a big concern for me. Is it possible to copy libstdc..