damjan wrote:
[..]
Can someone please explain to me this standard C/C++ vs. platform
dependent issue. Considering threads, the C run-time library includes
a function __beginthread.
Here is your explanation: the C run-time library only includes that
function on _your_ *particular* platform. It doesn't on many others.
That's what it means "platform-dependent".
Under Windows (pardon me for saying) this
is in a file libcmt.lib. If I link with that library or call
functions from it (e.g. the aforementioned beginthread), does that
mean my source won't port to linux?
It might. Or it might not. You need to ask in a Linux newsgroup.
Then how do i know what is and what isn't a part of standard C/C++,
that is, which functions i mustn't call if i want to retain
portability?
RTFM. If it does not specify which functions are ANSI (ISO) standard
library functions, then get a better M.
Dumb question, i know, but the "this is not a standard c++ topic" kind
of replies seem to exuberate here.
Unfortunately. Many first-time posters simply do not understand that the
library they are using consists of two parts: the standard part and the
platform-specific part. They often confuse the two. The same with the
language. There is the standard part and there are extensions. Every
compiler provides some. We in comp.lang.c++ only discuss standard parts
of both the langauge and the library. For compiler-specific extensions
there are compiler-specific newsgroups. For platform-specific library
portions there are platform newsgroups. Easy? I say. But seems far too
complicated for some posters.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask