Sorry about breaking the back-thread, I only saw the response in the
cmake digest and not from a particular response.
I think that this code is suspicious anyway, for a number of reasons.
They claim out-of-the-box windows compatibility, but I'm getting all
sorts of other compilation errors that in
Quoth Stroustrup (http://www2.research.att.com/~bs/bs_faq2.html#void-main):
The definition
void main() { /* ... */ }
is not and never has been C++, nor has it even been C. See the ISO C++
standard 3.6.1[2] or the ISO C standard 5.1.2.2.1. A conforming
implementation accepts
On Fri, 27 Aug 2010 08:10:49 -0700, Mark Roden wrote:
> And it turns out that it is valid C++ to have
> void main()
>
> because it's valid C.
>
> Source:
> http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/legality-of-void-main.html
You seem to have misread the link (which appears to fal
c++'98 standard
(http://www.kuzbass.ru:8086/docs/isocpp/basic.html#basic.start.main) clearly
states that main _MUST_ have int as it's return type. Further it shall be
callable as
int main();
int main(int argc, char* argv[]);
The part that says "but otherwise its type is implementation-defined"
Hi Jed,
I don't want portable code. I want the socket++ code that I
originally got from someone else to compile as intended on the various
platforms they support. They put a void as a return type; that void
as a return type is compiling just fine on vs2008, which according to
that page, is perfe
> Date: Thu, 26 Aug 2010 23:10:09 +0200
> From: Michael Hertling
> Subject: Re: [CMake] several questions about cmake
> To: cmake@cmake.org
> Message-ID: <4c76d831.5080...@online.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 08/26/2010 05:38 PM, Mark Roden
On 08/26/2010 05:38 PM, Mark Roden wrote:
>>> 2) I'm trying to check to see if a certain C++ code chunk will
>>> compile. The line is:
>>>
>>> CHECK_CXX_SOURCE_COMPILES("
>>> #include
>>> #include
>>> void main(){
>>> char buf[100];
>>> char buf2[100];
>>> strncpy(buf2, buf, 5);
>>> buf2[5]
>> 1) The default install directory on Windows is C:\Program Files, or
>> C:\Program Files (x86) on 64 bit. ?This default will not work on
>> Windows 7 (and perhaps Vista), because the user isn't running as
>> administrator anymore, and only administrators can modify that
>> directory. ?There s
@cmake.org
Subject: Re: [CMake] several questions about cmake
On 26 August 2010 01:34, Mark Roden wrote:
I'm starting to get deep into CMake, and I have a few questions as I
try to convert the socket++ library such that it can be compiled by
CMake on Windows.
1) The default in
Cc: cmake@cmake.org
>> Subject: Re: [CMake] several questions about cmake
>>
>> On 26 August 2010 01:34, Mark Roden wrote:
>> > I'm starting to get deep into CMake, and I have a few questions as I
>> > try to convert the socket++ library such that it can be compiled
On Wed, Aug 25, 2010 at 11:17 PM, Michael Wild wrote:
>
> On 26. Aug, 2010, at 1:34 , Mark Roden wrote:
>
>> I'm starting to get deep into CMake, and I have a few questions as I
>> try to convert the socket++ library such that it can be compiled by
>> CMake on Windows.
>>
>
> Cool!
Thanks, I think
> -Original Message-
> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On
> Behalf Of Mike McQuaid
> Sent: Thursday, August 26, 2010 1:12 AM
> To: Mark Roden
> Cc: cmake@cmake.org
> Subject: Re: [CMake] several questions about cmake
>
> On 26 Au
On 26. Aug, 2010, at 1:34 , Mark Roden wrote:
> I'm starting to get deep into CMake, and I have a few questions as I
> try to convert the socket++ library such that it can be compiled by
> CMake on Windows.
>
Cool!
> 1) The default install directory on Windows is C:\Program Files, or
> C:\Prog
On 26 August 2010 01:34, Mark Roden wrote:
> I'm starting to get deep into CMake, and I have a few questions as I
> try to convert the socket++ library such that it can be compiled by
> CMake on Windows.
>
> 1) The default install directory on Windows is C:\Program Files, or
> C:\Program Files (x8
I'm starting to get deep into CMake, and I have a few questions as I
try to convert the socket++ library such that it can be compiled by
CMake on Windows.
1) The default install directory on Windows is C:\Program Files, or
C:\Program Files (x86) on 64 bit. This default will not work on
Windows 7
15 matches
Mail list logo