Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
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

Re: [CMake] several questions about cmake

2010-08-27 Thread Jed Brown
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

Re: [CMake] several questions about cmake

2010-08-27 Thread Jed Brown
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

Re: [CMake] several questions about cmake

2010-08-27 Thread Michael Wild
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"

Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
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

Re: [CMake] several questions about cmake

2010-08-27 Thread Mark Roden
> 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

Re: [CMake] several questions about cmake

2010-08-26 Thread Michael Hertling
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]

Re: [CMake] several questions about cmake

2010-08-26 Thread Knox, Kent
>> 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

Re: [CMake] several questions about cmake

2010-08-26 Thread Clinton Stimpson
@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

Re: [CMake] several questions about cmake

2010-08-26 Thread John Drescher
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

Re: [CMake] several questions about cmake

2010-08-26 Thread Mark Roden
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

Re: [CMake] several questions about cmake

2010-08-26 Thread Hickel, Kelly
> -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

Re: [CMake] several questions about cmake

2010-08-25 Thread Michael Wild
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

Re: [CMake] several questions about cmake

2010-08-25 Thread Mike McQuaid
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

[CMake] several questions about cmake

2010-08-25 Thread Mark Roden
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