Hallo, ich fange gerade mit der Software für ein kleines Projekt an. Dazu benutze ich eine Lib die ich bereits öfters im Einsatz hatte, aber noch unter AVR Studio 5. Bisher hatte ich nie Probleme, aber entweder ist mir bei den Includes und Definitionen im Hauptprogramm (siehe Grow-O-Matic.c) ein blöder Fehler unterlaufen, oder aber beim linken läuft etwas da ich die Funktionen ds1820_init() ds1820_read_temp() nicht aufrufen kann. Da beim Compilieren jedesmal der Fehler Undefined reference erscheint. Hier die Meldungen aus dem AtmelStudio 6
1 | ------ Rebuild All started: Project: Grow-O-Matic, Configuration: Debug AVR ------ |
2 | Build started. |
3 | Project "Grow-O-Matic.cproj" (ReBuild target(s)): |
4 | Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!=''). |
5 | Target "CoreRebuild" in file "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\Vs\Compiler.targets" from project "F:\Atmel Studio\Grow-O-Matic\Grow-O-Matic\Grow-O-Matic.cproj" (target "ReBuild" depends on it): |
6 | Task "RunCompilerTask" |
7 | C:\Program Files (x86)\Atmel\Atmel Studio 6.0\make\make.exe clean all |
8 | rm -rf Grow-O-Matic.o Grow-O-Matic.d |
9 | rm -rf "Grow-O-Matic.elf" "Grow-O-Matic.a" "Grow-O-Matic.hex" "Grow-O-Matic.lss" "Grow-O-Matic.eep" "Grow-O-Matic.map" |
10 | Building file: .././Grow-O-Matic.c |
11 | Invoking: AVR/GNU C Compiler : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2 |
12 | "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -O1 -fpack-struct -fshort-enums -g2 -Wall -c -std=gnu99 -MD -MP -MF "Grow-O-Matic.d" -MT"Grow-O-Matic.d" -MT"Grow-O-Matic.o" -mmcu=attiny13 -o"Grow-O-Matic.o" ".././Grow-O-Matic.c" |
13 | Finished building: .././Grow-O-Matic.c |
14 | Building target: Grow-O-Matic.elf |
15 | Invoking: AVR/GNU Linker : (AVR_8_bit_GNU_Toolchain_3.4.0_663) 4.6.2 |
16 | "C:\Program Files (x86)\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin\avr-gcc.exe" -o Grow-O-Matic.elf Grow-O-Matic.o -Wl,-Map="Grow-O-Matic.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -mmcu=attiny13 |
17 | Grow-O-Matic.o: In function `startup': |
18 | F:\Atmel Studio\Grow-O-Matic\Grow-O-Matic\Debug/.././Grow-O-Matic.c(64,1): undefined reference to `ds1820_init' |
19 | Grow-O-Matic.o: In function `main': |
20 | F:\Atmel Studio\Grow-O-Matic\Grow-O-Matic\Debug/.././Grow-O-Matic.c(49,1): undefined reference to `ds1820_read_temp' |
21 | collect2: ld returned 1 exit status |
22 | make: *** [Grow-O-Matic.elf] Error 1 |
23 | Done executing task "RunCompilerTask" -- FAILED. |
24 | Done building target "CoreRebuild" in project "Grow-O-Matic.cproj" -- FAILED. |
25 | Done building project "Grow-O-Matic.cproj" -- FAILED. |
26 | |
27 | Build FAILED. |
28 | ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== |