This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<button onclick="saveTextAsFile()">Save Text to File</button> | |
<script type="text/javascript"> | |
// Inspiration from https://thiscouldbebetter.wordpress.com/2012/12/18/loading-editing-and-saving-a-text-file-in-html5-using-javascrip/ | |
var textToSave = "Date, clientX, clientY" + String.fromCharCode(13); // Header of log file | |
var clientX = 0; | |
var clientY = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++ -c test.cpp -o test.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem You need to have g++ and gfortran installed (for example, use MinGW and add the bin repertory to your path). | |
rem Build the example_dll.dll | |
g++ -c -DBUILDING_DLL example_dll.cpp | |
rem .a is needed for gfortran compiler | |
g++ -shared -o example_dll.dll example_dll.o -Wl,--out-implib,libexample_dll.a | |
rem .lib is needeede by ifort compiler (but it is the same file) | |
copy libexample_dll.a libexample_dll.lib | |
rem del libexample_dll.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcc -c test.cpp -o test.o | |
gfortran main.f90 test.o | |
a |