Message: More Windows Woes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question More Windows Woes 

Forum: Installation and Configuration
Date: 29 May, 2015
From: Tom Roberts <Tom Roberts>

Building on Windows has proven to be a nightmare. My program that built just fine with Geant4.9.6, Windows Xp, and the corresponding tools (including using Cygwin). It still builds just fine on both Mac and Linux, using Geant4.10.01.p01 (which I'm trying to use on Windows).

I am now trying to use Windows 7, Visual Studio 2013, and CMake 3.2.1. I tried to do a 64-bit Release build, but after getting to the end I discovered that Root does not support that.

So I'm trying a 32-bit Release build.

I have found that using directories in C:/ is problematical, because of Windows permissions. In particular, if I ever use Cygwin's vi on a file (any level deep), it is no longer readable (!) -- no error from vi, it silently makes the file unreadable. So I am working in C:/cygwin/home/tjrob. Note I am still dependent on Cygwin, because Coin3D needs it to build (using the MS compilers).

One error is related to __restrict__, which seems to be undefined, and thus causes syntax errors in G4Log.hh and G4Exp.hh. Does anybody know why it is not defined? (as a workaround I simply deleted it from those files). Amazingly, I did not have this problem with the 64-bit build, nor does it occur on Linux or Mac.

A worrisome warning is about exception handlers in the VC xlocale include file:
 * warning C4530: C++ exception handler used, but unwind semantics are
   not enabled. Specify /EHsc.
I'm just ignoring it for now.

A bunch of other errors can be boiled down to: WIN32 is not #defined. HOW DID THAT HAPPEN????

What is going on? -- I know the Geant4 collaboration tests this, but it is just not working for me. I have been using Geant4 since 2002, and am an expert UNIX software developer; Windows development has always been a pain in the ass.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Ok: Re: More Windows Woes   (Tom Roberts - 29 May, 2015)
 Add Message Add Message
to: "More Windows Woes"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]