Skip to content

Added support for C++ projects.#11

Open
icvidal wants to merge 1 commit intopridolfi:masterfrom
icvidal:CPP
Open

Added support for C++ projects.#11
icvidal wants to merge 1 commit intopridolfi:masterfrom
icvidal:CPP

Conversation

@icvidal
Copy link
Copy Markdown

@icvidal icvidal commented Oct 16, 2016

Modified main Makefile to add support for C++ compilation. It has to include sources and make the final linking with a C++ capable compiler (g++).
Modified etc/target/*.mk to include CXXFLAGS.
Modified etc/target/*_lib.ld to include librdimon.a necessary for C++ symbols.
Modified modules/lpc4337_m4/ciaa/inc/*.h to handle both C and C++ projects.
Added an example blinky as a minimal C++ project.

Any C++ project has to use a project Makefile aware of C++ files defining PROJECT_CXX_FILES as done in blinky_cpp

@@ -1,6 +1,10 @@
# Copyright 2016, Pablo Ridolfi
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put your copyright here like this:
Copyright 2016, Iván Castellucci Vidal ivanc.vidal@gmail.com

#
# Changes:
# 2016-10-16: Iván Castellucci Vidal <ivanc.vidal@gmail.com>
# Added support for C++ projects.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go in a CREDITS file

if(pausems_count > 0) pausems_count--;
}

int main(void)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe you can improve this example by adding something in c++, now this example is exactly the same as blinky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants