nrc-cnrc / EGSnrc

Toolkit for Monte Carlo simulation of ionizing radiation — Trousse d'outils logiciels pour la simulation Monte Carlo du rayonnement ionisant
http://nrc-cnrc.github.io/EGSnrc
GNU Affero General Public License v3.0
217 stars 146 forks source link

A compilation error on egs++ #1159

Closed CQUswl closed 2 months ago

CQUswl commented 2 months ago

I wrote "myapp" according to the "getting start" document. When I compiled with" mingw32 ", I encountered some errors. I don't know whether it is a bug or some other reason, so please help me solve it.

image

CQUswl commented 2 months ago

I wrote "myapp" according to the "getting start" document. When I compiled with" mingw32 ", I encountered some errors. I don't know whether it is a bug or some other reason, so please help me solve it.

image When the run is complete, the folder contains the following files:

image

rtownson commented 2 months ago

This might be due to the non-latin characters in the -DCOMPILE_TIME= definition. Could you provide the installation log, found in HEN_HOUSE/log, so that I can see if the installation worked OK?

CQUswl commented 2 months ago

This might be due to the non-latin characters in the -DCOMPILE_TIME= definition. Could you provide the installation log, found in HEN_HOUSE/log, so that I can see if the installation worked OK?

I also wondered if it was because I didn't fully install it, so I tried to re-download and install it several times. Finally, I found a file called "EGSnrc-guis-windows" in the release interface, and I found that the EGSnrc I installed did not have the contents of the file, so I put the contents of the file in the place where they should be, and finally successfully compiled egs++.

rtownson commented 2 months ago

The EGSnrc-guis-windows are not necessary to install and run EGSnrc. They just provide the GUIs, which are also available using EGSnrc-configure-windows.exe if you click the checkbox on the installer to place the GUIs on the desktop. So I imagine that it was something else you did that fixed the installation. In any case, I'm glad it's solved!