Click here to Skip to main content
15,881,559 members

Comments by Matthew Faithfull (Top 200 by date)

Matthew Faithfull 1-Aug-13 12:15pm View    
I'm hoping it's similar enough when both are building for Windows or I'll have to refactor things I'd rather not.
I have the MSVC static init working just fine although I'm not doing it exactly the same way they do, it is compatible. I suspect GCC uses different section names so I need to discover those and plug them in as compiler specifics.
Matthew Faithfull 1-Aug-13 11:57am View    
"Do you want to put together a minimalisitic exe with mingw?"

Pretty close, I've developed my own runtime which works with VS, replaces MSVCRT/MSVCP. The next step is to make it work with MinGW GCC as a bridge to Linux GCC and because it's useful in itself. The next trick is to get static initialization to work. The runtime part I'm in control of but only if the compiler cooperates and puts everything in the right section. A very sharp stick may be required.
Matthew Faithfull 1-Aug-13 10:50am View    
You're right of course, I don't think I'm doing that here. The only compiler I'm using is mingw-gcc 4.7.1 I'm just ripping it up to build things against my own runtime :-)

I've moved things on a step and am now hitting my code. It still crashes f course so more fun to be had.
Matthew Faithfull 23-Jul-13 13:06pm View    
Thanks guys for the very useful and interesting ideas on this. It's clear that there's not going to be any easy fix for VS. I guess I'll have to bite the bullet and move to CMake and look at restructuring dependencies in the longer term.
Matthew Faithfull 23-Jul-13 13:06pm View    
Thanks guys for the very useful and interesting ideas on this. It's clear that there's not going to be any easy fix for VS. I guess I'll have to bite the bullet and move to CMake and look at restructuring dependencies in the longer term.