Results 1 to 2 of 2
My goal is to learn to program device drivers on linux. I have three promblems in my way.
1. I´m new to linux
2. I´ve only programmed applications on windows
...
- 03-21-2008 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 16
Compilation questions (my own stupidity)
My goal is to learn to program device drivers on linux. I have three promblems in my way.
1. I´m new to linux
2. I´ve only programmed applications on windows
3. I´ve never actually compiled anything outside of an IDE (this one is my biggest problem)
I´m reading through a linux device drivers howto and I immediately ran into a problem. I don´t know how to compile the very first example. Without a nice GUI button that says ¨compile¨ or ¨build¨ I´m stuck.
I thought That it should be self explanatory so I opened a terminal within the directory of the .c file and wrote this:
And I got this nice little output:Code:gcc -c hellomod.c -I /usr/src/linux-headers-2.6.22-14-generic/include/
Longest Error message I´ve ever read. It makes me chuckleCode:In file included from /usr/src/linux-headers-2.6.22-14-generic/include/asm/bitops.h:9, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitops.h:9, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/thread_info.h:20, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:49, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/asm/alternative.h:9: error: expected specifier-qualifier-list before ‘u8’ In file included from /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitops.h:9, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/thread_info.h:20, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:49, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/asm/bitops.h:244: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ In file included from /usr/src/linux-headers-2.6.22-14-generic/include/asm/system.h:7, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:57, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:213: error: expected declaration specifiers or ‘...’ before ‘u8’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:213: error: expected declaration specifiers or ‘...’ before ‘u8’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:214: error: expected declaration specifiers or ‘...’ before ‘u16’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:214: error: expected declaration specifiers or ‘...’ before ‘u16’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:215: error: expected declaration specifiers or ‘...’ before ‘u32’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:215: error: expected declaration specifiers or ‘...’ before ‘u32’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h: In function ‘cmpxchg_386’: /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:222: error: too many arguments to function ‘cmpxchg_386_u8’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:224: error: too many arguments to function ‘cmpxchg_386_u16’ /usr/src/linux-headers-2.6.22-14-generic/include/asm/cmpxchg.h:226: error: too many arguments to function ‘cmpxchg_386_u32’ In file included from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h: At top level: /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:290: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h: In function ‘double_spin_lock’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:294: error: ‘l1_first’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:294: error: (Each undeclared identifier is reported only once /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:294: error: for each function it appears in.) /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h: At top level: /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:309: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h: In function ‘double_spin_unlock’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:313: error: ‘l1_taken_first’ undeclared (first use in this function) In file included from /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:86, from /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:22, from /usr/src/linux-headers-2.6.22-14-generic/include/asm/atomic.h:5, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:326, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_zero’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:134: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:138: warning: incompatible implicit declaration of built-in function ‘memset’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_fill’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:147: warning: incompatible implicit declaration of built-in function ‘memset’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:149: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_copy’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:155: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:159: warning: incompatible implicit declaration of built-in function ‘memcpy’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_and’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:166: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_or’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:175: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_xor’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:184: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_andnot’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:193: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_complement’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:202: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_equal’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:211: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_intersects’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:220: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_subset’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:229: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_empty’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:237: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_full’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:245: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_weight’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:253: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_shift_right’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:261: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h: In function ‘bitmap_shift_left’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/bitmap.h:270: error: ‘BITS_PER_LONG’ undeclared (first use in this function) In file included from /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:22, from /usr/src/linux-headers-2.6.22-14-generic/include/asm/atomic.h:5, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:326, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:88: error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpu_set’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:94: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpu_clear’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:100: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_setall’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:106: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_clear’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:112: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpu_test_and_set’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:121: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_and’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:128: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:128: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:128: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_or’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:135: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:135: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:135: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_xor’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:142: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:142: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:142: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_andnot’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:150: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:150: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:150: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_complement’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:157: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:157: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_equal’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:164: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:164: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_intersects’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:171: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:171: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_subset’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:178: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:178: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_empty’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:184: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_full’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:190: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_weight’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:196: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_shift_right’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:204: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:204: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_shift_left’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:212: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:212: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpumask_scnprintf’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:273: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpumask_parse_user’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:281: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpulist_scnprintf’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:289: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpulist_parse’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:295: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpu_remap’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:303: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:303: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h: In function ‘__cpus_remap’: /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:311: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:311: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:311: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/cpumask.h:311: error: ‘cpumask_t’ has no member named ‘bits’ In file included from /usr/src/linux-headers-2.6.22-14-generic/include/asm/atomic.h:5, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/spinlock.h:326, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:9, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h: At top level: /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:83: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function) /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:83: error: requested alignment is not a constant /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:427: warning: ‘struct pt_regs’ declared inside parameter list /usr/src/linux-headers-2.6.22-14-generic/include/asm/processor.h:427: warning: its scope is only this definition or declaration, which is probably not what you want In file included from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:10, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/list.h:970:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/src/linux-headers-2.6.22-14-generic/include/asm/local.h:4, from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:19, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/percpu.h:72: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/percpu.h:78: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.22-14-generic/include/linux/percpu.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ In file included from /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:21, from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/asm/module.h:64:2: error: #error unknown processor family In file included from hellomod.c:2: /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:48: error: field ‘attr’ has incomplete type /usr/src/linux-headers-2.6.22-14-generic/include/linux/module.h:59: error: field ‘kobj’ has incomplete type hellomod.c: In function ‘hello_init’: hellomod.c:6: error: ‘KERN_ALERT’ undeclared (first use in this function) hellomod.c:6: error: expected ‘)’ before string constant hellomod.c: In function ‘hello_exit’: hellomod.c:11: error: ‘KERN_ALERT’ undeclared (first use in this function) hellomod.c:11: error: expected ‘)’ before string constant hellomod.c: At top level: hellomod.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’ hellomod.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__attribute_used__’
Any help Is desperately needed any greatly appreciated.
- 03-22-2008 #2Just Joined!
- Join Date
- Aug 2007
- Posts
- 16
Now I wrote:
and I recieved this output:Code:make hellomod
what am I doing wrong?Code:cc hellomod.c -o hellomod hellomod.c:1:24: error: linux/init.h: No such file or directory hellomod.c:2:26: error: linux/module.h: No such file or directory hellomod.c:3: error: expected declaration specifiers or ‘...’ before string constant hellomod.c:3: warning: data definition has no type or storage class hellomod.c: In function ‘hello_init’: hellomod.c:6: error: ‘KERN_ALERT’ undeclared (first use in this function) hellomod.c:6: error: (Each undeclared identifier is reported only once hellomod.c:6: error: for each function it appears in.) hellomod.c:6: error: expected ‘)’ before string constant hellomod.c: In function ‘hello_exit’: hellomod.c:11: error: ‘KERN_ALERT’ undeclared (first use in this function) hellomod.c:11: error: expected ‘)’ before string constant hellomod.c: At top level: hellomod.c:13: warning: data definition has no type or storage class hellomod.c:13: warning: parameter names (without types) in function declaration hellomod.c:14: warning: data definition has no type or storage class hellomod.c:14: warning: parameter names (without types) in function declaration make: *** [hellomod] Error 1
EDIT:
Seriously Im on an active linux programming forum and NO ONE knows how to compile something???


Reply With Quote