A question of portability
I just started a coding project on a Debian Linux installation. The app I'm making uses the following:
<sys/time.h>
- gettimeofday()
<unistd.h>
- sleep()
<pthread.h>
- pthread_create
- pthread_join
and some stuff from <errno.h>, <fcntl.h>, <sys/types.h>, <sys/socket.h>, and <netinet/in.h> which I haven't implemented yet.
I want it to be portable especially to other Linux distros and types of BSD. I don't have other installations on which I could test it right now. My question is, using these libraries, will I have to change my code to make it portable to these? Or would I only have to recompile the same code to run it on BSD, say.
"It compiles! Ship it!"
March 17, 2007 03:10 AM
You only have to recompile since the program is only using standard functions.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement