texasrobert
Teh vapor
Just stumbled on this, looks dank as whaaaaaaa!
Congrats on producing this marvel!!
Congrats on producing this marvel!!
#include syntax error (Preprocessor)
The syntax of the filename argument to #include is invalid. The argument to #include must be a valid
file name, either enclosed in double quotes ("") or angle brackets (< >). For example:
#include "afile.h"
#include <otherfile.h>
Spaces should not be included, and the closing quote or bracket must be present. There should be
nothing else on the line.
Hippie Dickie said:i forget how i initially set up MPLAB, but i think i had the same problem at first because i added all the include files to the project, however the only source file MPLAB should have is Main.asm
maybe your version of MPLAB is different from the one i use (Version 8.00.00.00), which came with my PICKit1
also, there are only 5 #include errors, but there are 6 include files -- is one include working okay?
Hippie Dickie said:yes, main.asm explicitly includes all the files needed. i thought this was a lot easier than to go through the hassle of creating a make file for the project.
those 3 files you mention are includes at the bottom of main.asm -- there are also 3 includes at the top of main.asm (lines 21, 22, and 23).
[HEADER]
magic_cookie={66E99B07-E706-4689-9E80-9B2582898A13}
file_version=1.0
[PATH_INFO]
BuildDirPolicy=BuildDirIsProjectDir
dir_src=
dir_bin=
dir_tmp=
dir_sin=
dir_inc=
dir_lib=
dir_lkr=
[CAT_FILTERS]
filter_src=*.asm
filter_inc=*.h;*.inc
filter_obj=*.o
filter_lib=*.lib
filter_lkr=*.lkr
[OTHER_FILES]
file_000=no
[FILE_INFO]
file_000=Main.ASM
[SUITE_INFO]
suite_guid={6B3DAA78-59C1-46DD-B6AA-DBDAE4E06484}
suite_state=
[TOOL_SETTINGS]
TS{DD2213A8-6310-47B1-8376-9430CDFC013F}=
TS{BFD27FBA-4A02-4C0E-A5E5-B812F3E7707C}=/o"$(BINDIR_)$(TARGETBASE).cof" /M"$(BINDIR_)$(TARGETBASE).map" /W
TS{ADE93A55-C7C7-4D4D-A4BA-59305F7D0391}=
[INSTRUMENTED_TRACE]
enable=0
transport=0
format=0
Hippie Dickie said:thank-you for your compliment -- but i've been a programmer for 45 years and this all looks the same after a while. There are only a few key concepts in computer "science" (art, really) that get stirred around every so often. A lot of times i can't explain in detail what i've done, i just work on instinct.
Dynabook
The concept of the handheld portable computer goes back to Alan Kay's days at Xerox PARC. In 1968, when computers were massive and lived in clean rooms, he envisioned the Dynabook, a handheld computer weighing less than two pounds.
Make: The target "CMCP and Hex\Main.o" is out of date.
Executing: "CProgram Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p12F683 "Main.asm" /l"Main.lst" /e"Main.err" /d__DEBUG=1
Error[116] CMCP AND HEX\MACRO.ASM 142 : Address label duplicated or different in second pass (Skip_If_Old_NOT_vAbove)
Error[116] CMCP AND HEX\MACRO.ASM 161 : Address label duplicated or different in second pass (Skip_If_Old_NOT_vBelow)
Halting build on first failure as requested.
;--------------------
Set_vAbove macro
bsf vCOILTEMP,vAbove
endm
Clear_vAbove macro
bcf vCOILTEMP,vAbove
endm
Skip_If_vAbove macro
btfss vCOILTEMP,vAbove
endm
Skip_If_NOT_vAbove macro
btfsc vCOILTEMP,vAbove
endm
Skip_If_Old_vAbove macro
btfss vCOILTEMPold,vAbove
endm
Skip_If_Old_NOT_vAbove macro
btfsc vCOILTEMPold,vAbove
endm
;--------------------
Set_vBelow macro
bsf vCOILTEMP,vBelow
endm
Clear_vBelow macro
bcf vCOILTEMP,vBelow
endm
Skip_If_vBelow macro
btfss vCOILTEMP,vBelow
endm
Skip_If_NOT_vBelow macro
btfsc vCOILTEMP,vBelow
endm
Skip_If_Old_vBelow macro
btfss vCOILTEMPold,vBelow
endm
Skip_If_Old_NOT_vBelow macro
btfsc vCOILTEMPold,vBelow
endm
;--------------------
Hippie Dickie said:re: address label duplicated. idk, but could be another copy/paste error. you may have to search all the .asm files for those two labels to find the duplicate.
Hippie Dickie said:AND, MOST IMPORTANT ... i hope you're using all glass vapor path. It ain't no Bud Toaster if it ain't all glass vapor path, you know.