Hi, I'm trying to set up a Workspace to do some MPLAB SIM sessions on a virtual= PIC32 to experiment with this MPU both in asm and C. When I have created the Workspace, I did these steps: Project Wizard > Next Device PIC32MX460F512L Active Toolsuite: Microchip PIC32 C-Compiler Toolsuite I enabled Store tool locations in Project Next Create New Project File (I specified the path and filename) Then I created and added two blank source files, one .S and the other .C I've put in the .C one this small source: --- #include int main(void) { return 0; } --- If I build as a library then no errors, but if I build as a normal target I= get: ---------------------------------------------------------------------- Debug build of project `C:\Coding\PIC32\v001.mcp' started. Language tool versions: pic32-as.exe v1.12, pic32-gcc.exe v1.12, pic32-ld.e= xe v1.12, pic32-ar.exe v1.12 Preprocessor symbol `__DEBUG' is defined. Sun Oct 23 15:33:21 2011 ---------------------------------------------------------------------- Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Coding\PIC32\v001.o". Clean: Done. Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe" -mprocess= or=3D32MX460F512L -c -MMD -MF"v001.d" -D__DEBUG "v001.S" -o"v001.o" -Wa,--d= efsym=3D__DEBUG=3D1 Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe" -mprocess= or=3D32MX460F512L -x c -c "v001.C" -o"v001.o" -MMD -MF"v001.d" -D__DEBUG -g Executing: "C:\Programmi\MPLab\MPLAB C32 Suite\bin\pic32-gcc.exe" -mprocess= or=3D32MX460F512L "v001.o" "v001.o" -o"v001.elf" -Wl,-L"C:\Programmi\MPLab\= MPLAB C32 Suite\lib",-L"C:\Programmi\MPLab\MPLAB C32 Suite\pic32mx\lib",--d= efsym=3D__MPLAB_BUILD=3D1,--defsym=3D__MPLAB_DEBUG=3D1,-Map=3D"v001.map" v001.o: In function `main': C:\Coding\PIC32/v001.C:34: multiple definition of `main' v001.o:C:\Coding\PIC32/v001.C:34: first defined here Link step failed. ---------------------------------------------------------------------- Debug build of project `C:\Coding\PIC32\v001.mcp' failed. Language tool versions: pic32-as.exe v1.12, pic32-gcc.exe v1.12, pic32-ld.e= xe v1.12, pic32-ar.exe v1.12 Preprocessor symbol `__DEBUG' is defined. Sun Oct 23 15:33:22 2011 ---------------------------------------------------------------------- BUILD FAILED Any help please? I want to play with the PIC32 simulator :-) I actually have a Starter Kit board too, but I wanna start from scratch, an= d not using that board, but the MPLAB SIM. Thanks a lot. Cheers, Mario --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .