Instead of "gcc libcdemo.o -o libcdemo" use "gcc -m32 libcdemo.o -o libcdemo". This will stop the warning message about the architecture incompatibility and the executable will work instead of throwing "segmentation fault".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum