Schon mal ganz herzlichen Dank für die Antwort!
Ich habe versucht nachzuvollziehen, wo und was ich nachschauen sollte,
doch ich hab es leider nicht verstanden.
Ich habe gerade nochmal einen Versuch gemacht: Ich habe 2 Ordner mit dem
gleichen Projekt und dem gleichen Hauptprogramm auf der Festplatte C
gespeichert. Bei dem einen Projekt ist es egal ob sich die zusätzlich
benötigten .c und .h Dateien auf der Festplatte oder auf einem USB-Stick
befinden- es funktioniert. Bei dem 2. Ist es egal wo sich die
zusätzlichen Dateien befinden- es funktioniert nicht.
(Ich benutze MPLAB IDE V8.01 und den MPLAB C32 C-Compiler)
Könntest du mir bitte nochmal genauer bzw. einfacher sagen wo und nach
was ich schauen sollte??
1.Programm:
----------------------------------------------------------------------
Debug build of project `C:\C32\11 Analog\POT.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Fri Mar 25 12:04:14 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\C32\11 Analog\Pot-Man.o".
Clean: Deleted file "C:\C32\11 Analog\ADClib.o".
Clean: Deleted file "C:\C32\11 Analog\Explore.o".
Clean: Deleted file "C:\C32\11 Analog\LCDlib.o".
Clean: Deleted file "C:\C32\11 Analog\POT.elf".
Clean: Deleted file "C:\C32\11 Analog\POT.hex".
Clean: Done.
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L -x c -c "Pot-Man.c" -o"Pot-Man.o" -MMD
-MF"Pot-Man.d" -I"C:\C32\include" -D__DEBUG -g
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L -x c -c "C:\C32\lib\ADClib.c" -o"ADClib.o" -MMD
-MF"ADClib.d" -I"C:\C32\include" -D__DEBUG -g
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L -x c -c "C:\C32\lib\Explore.c" -o"Explore.o"
-MMD -MF"Explore.d" -I"C:\C32\include" -D__DEBUG -g
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L -x c -c "C:\C32\lib\LCDlib.c" -o"LCDlib.o" -MMD
-MF"LCDlib.d" -I"C:\C32\include" -D__DEBUG -g
Warning: Building a `Debug' configuration with no debug tool loaded.
Warning: Debugger-specific command-line options may be missing.
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L "Pot-Man.o" "ADClib.o" "Explore.o" "LCDlib.o"
-o"POT.elf" -Wl,-L"C:\Program Files\Microchip\MPLAB
C32\lib",-L"C:\Program Files\Microchip\MPLAB
C32\pic32mx\lib",--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,-Map=
"POT.map"
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-bin2hex.exe"
"C:\C32\11 Analog\POT.elf"
Loaded C:\C32\11 Analog\POT.elf.
----------------------------------------------------------------------
Debug build of project `C:\C32\11 Analog\POT.mcp' succeeded.
Preprocessor symbol `__DEBUG' is defined.
Fri Mar 25 12:04:18 2011
SUCCEEDED
----------------------------------------------------------------------
2.Programm:
----------------------------------------------------------------------
Debug build of project `C:\C32\11potman\potman.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Fri Mar 25 11:58:52 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Programme\Microchip\MPLAB C32\bin\pic32-gcc.exe"
-mprocessor=32MX360F512L -x c -c "potman.c" -o"potman.o" -MMD
-MF"potman.d" -D__DEBUG -g
potman.c:11:21: explore.h: No such file or directory
potman.c:12:17: LCD.h: No such file or directory
potman.c:13:17: ADC.h: No such file or directory
potman.c: In function `main':
potman.c:21: error: `AINPUTS' undeclared (first use in this function)
potman.c:21: error: (Each undeclared identifier is reported only once
potman.c:21: error: for each function it appears in.)
potman.c:24: error: `POT' undeclared (first use in this function)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\C32\11potman\potman.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Fri Mar 25 11:58:53 2011
FAILED
----------------------------------------------------------------------