Strange issue in gcc windows

Last week I came across a strange situation in gcc for windows. I have written some c++ codes in linux where some of the function bodies i kept in header files only.

like this

class temp

{

string m;

public:

void setm(string param){ m = param;}

string getm(){ return m;}

}

 

This is working fine when compiled and used in linux. But when I use same gcc version in windos 64 , it compiles but crashes at run time as it couldn’t locate function bodies. Will look into this farther .

Leave a Reply

Your email address will not be published. Required fields are marked *