Run code from different arch
I've developed a small (very small) ftp client and server.
Both of these programs compile and run well only if they use the same arch.
- If client is Ubuntu amd64 and server is Ubuntu i386 i got a segfault (i think it is a pointer problem)
- If client is Ubuntu amd64 and server is Ubuntu amd64 all ok
- If client is Ubuntu i386 and server is Ubuntu i386 all ok
How can i made these 2 programs working on different archs?
It is a code problem? If so what i have to do?
PS: i think it is a problem,for example, of pointer because they are 4 or 8 bytes based on the PC's arch!