Hi,
I have a program that use flex++/bison++ to generate a parser and I don't know how to use the custom build settings in order to generate c++ output files inside my codeblocks project.
I have these rules into my hand-made Makefile:
scanner.cpp: scanner.l
$(FLEX) -hscanner.h -oscanner.cpp scanner.l
parser.cpp: parser.y scanner.cpp
$(BISON) -d -v -hparser.h -oparser.cpp parser.y
Output files are scanner.h/.cpp and parser.h/.cpp. I have tried to create a custom build with:
$FLEX -h$DIR\scanner.h -o$DIR\scanner.cpp $FILENAME
but it doesn't work, this hang up the compilation process.
Any idea?
Regards,
José Antonio.
From src/sdk/macrosmanager.cpp :
/*
standard macros are:
${PROJECT_FILENAME} ${PROJECT_FILE} ${PROJECTFILE}
${PROJECT_NAME}
${PROJECT_DIR} ${PROJECTDIR} ${PROJECT_DIRECTORY}
${CODEBLOCKS} ${APP_PATH} ${APPPATH}
${DATA_PATH} ${DATAPATH}
${PLUGINS}
${ACTIVE_EDITOR_FILENAME}
${ALL_PROJECT_FILES}
${MAKEFILE}
${FOO_OUTPUT_FILE} // per target
${BAR_OUTPUT_DIR} // per target
$(TARGET_OUTPUT_DIR) // the current target's out dir
$(TARGET_NAME) // the current target's name (title)
${AMP} TODO: implement AddMacro() for custom macros (like this)
*/
So it's not a bug: those aren't predefined macros. If you could explain what exactly you're trying to achieve maybe someone can help you. Or maybe the above list was enough?