I am somewhat confused, need some C/C++ guru here. If it is C and in principle the language cannot change then how come some programs run on Visual C++ and not on gcc ???
I am using Visual C++ 2008 and gcc 4.4.1 and trying to compile some really old code (1996). It somewhat works with Visual C++ (Windows XP) and completely fails with gcc (Ubuntu 9.10).
What alarms me is that if it is C/C++, then the compiler should not be an issue. Any help ?
UPDATE : This is the code, http://www.ece.unh.edu/robots/cmacdemo.c
I got it to compile and link, under gcc on linux:
#includefile names#include "io.h"to#include "sys/io.h"#include "conio.h", it is not on linux and doesn’t seem to have been neededO_BINARYin file unh_cmac.c