Coutsos
October 20th, 2005, 11:12 AM
Hello, world!
For a lab in my systems programming course we are asked to download and compile an example program (http://janus.newcs.uwindsor.ca/~hjin/256/labs/files/lab5/streamexample.c) and run it with a test file. However, when I tried to compile it on my laptop running Breezy (with build-essential package installed) I got a bunch of errors.
niko@ubuntu:~/Desktop$ gcc streamexample.c
streamexample.c: In function ‘main’:
streamexample.c:10: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:11: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:17: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:18: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:19: error: ‘struct _IO_FILE’ has no member named ‘_cnt’
streamexample.c:20: error: ‘struct _IO_FILE’ has no member named ‘_ptr’
streamexample.c:26: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:27: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:28: error: ‘struct _IO_FILE’ has no member named ‘_cnt’
streamexample.c:29: error: ‘struct _IO_FILE’ has no member named ‘_ptr’
Yet, compiling it from my account on the school's server was fine (also gcc). I guess that it's probably just a different version of gcc, but I was really hoping somebody could provide me with a better understanding of the problem. I'd really prefer to do my programming work on my own computer than be forced to use the ridiculously outdated software they provide us with.
If this isn't enough information to help you figure out the problem, please let me know what else you need (and preferrably how to get it!).
Thanks in advance!
-Nick
For a lab in my systems programming course we are asked to download and compile an example program (http://janus.newcs.uwindsor.ca/~hjin/256/labs/files/lab5/streamexample.c) and run it with a test file. However, when I tried to compile it on my laptop running Breezy (with build-essential package installed) I got a bunch of errors.
niko@ubuntu:~/Desktop$ gcc streamexample.c
streamexample.c: In function ‘main’:
streamexample.c:10: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:11: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:17: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:18: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:19: error: ‘struct _IO_FILE’ has no member named ‘_cnt’
streamexample.c:20: error: ‘struct _IO_FILE’ has no member named ‘_ptr’
streamexample.c:26: error: ‘struct _IO_FILE’ has no member named ‘_file’
streamexample.c:27: error: ‘struct _IO_FILE’ has no member named ‘_base’
streamexample.c:28: error: ‘struct _IO_FILE’ has no member named ‘_cnt’
streamexample.c:29: error: ‘struct _IO_FILE’ has no member named ‘_ptr’
Yet, compiling it from my account on the school's server was fine (also gcc). I guess that it's probably just a different version of gcc, but I was really hoping somebody could provide me with a better understanding of the problem. I'd really prefer to do my programming work on my own computer than be forced to use the ridiculously outdated software they provide us with.
If this isn't enough information to help you figure out the problem, please let me know what else you need (and preferrably how to get it!).
Thanks in advance!
-Nick