Add New Item C Sysprogs forums › Forums › VisualGDB › Add New Item C This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by support. Log In Register Lost Password Viewing 6 posts - 1 through 6 (of 6 total) Author Posts May 27, 2017 at 11:09 #11313 ArtursParticipant Hi How Can I add new Item to my project for STM32 in C lang ? Now I can only add .cpp file. Regards Artur May 27, 2017 at 16:33 #11316 supportKeymaster Hi, The easiest way would be to add another .cpp file and rename it to .c. May 27, 2017 at 18:26 #11319 ArtursParticipant I do it in the way but then the standard template is not created. This reply was modified 6 years, 11 months ago by Arturs. May 27, 2017 at 21:34 #11322 supportKeymaster Hi, Not sure what you mean by the “standard template”. Could you please provide an example? May 27, 2017 at 22:36 #11323 ArtursParticipant #ifndef HEADER_FILE #define HEADER_FILE the entire header file file #endif I think the above code is standard for c lang not pragma once. Of course I can add the lines but I would like to know how yo create c file automatically This reply was modified 6 years, 11 months ago by Arturs. This reply was modified 6 years, 11 months ago by Arturs. May 27, 2017 at 23:16 #11326 supportKeymaster Hi, GCC should actually support #pragma once when compiling .c files as well, so normally you won’t need this. Author Posts Log In Register Lost Password Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Or login using an OpenID Learn about OpenID Log In