Jul 22, 2019
12:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 22, 2019
12:08 PM
5 Replies
Jul 23, 2019
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 23, 2019
01:58 AM
Hi,
Try renaming main.c to main.cpp.
Regards,
Jesus
Try renaming main.c to main.cpp.
Regards,
Jesus
Jul 23, 2019
09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 23, 2019
09:36 PM
Hi,
Sorry I have given half message. I have 3 source files in c with header file. one base c++ file which functions to be used in these three c source files. but it is showing error.
Sorry I have given half message. I have 3 source files in c with header file. one base c++ file which functions to be used in these three c source files. but it is showing error.
Jul 25, 2019
05:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 25, 2019
05:55 PM
I made the changes to main.cpp. but error occured
"\"C:\\DAVE-4.4.2\\DAVE-4.4.2\\eclipse\\ARM-GCC-49\\bin\\make\"" --output-sync -j4 all
make: *** No rule to make target '../main.c', needed by 'main.o'. Stop.
"\"C:\\DAVE-4.4.2\\DAVE-4.4.2\\eclipse\\ARM-GCC-49\\bin\\make\"" --output-sync -j4 all
make: *** No rule to make target '../main.c', needed by 'main.o'. Stop.
Jul 27, 2019
07:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 27, 2019
07:13 AM
Hi,
I resolved it I rebuilt it.
And instead of adding function c++ in c, added c in c++. that got solved.
I resolved it I rebuilt it.
And instead of adding function c++ in c, added c in c++. that got solved.
Oct 31, 2019
05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 31, 2019
05:30 AM
Dear reader!
Embedding C++ in C isn't directly possible, vice versa does. But it is really possible if you use a cpp wrapper where you return cpp functions to c.
Useful link: https://isocpp.org/wiki/faq/mixing-c-and-cpp
regards
Embedding C++ in C isn't directly possible, vice versa does. But it is really possible if you use a cpp wrapper where you return cpp functions to c.
Useful link: https://isocpp.org/wiki/faq/mixing-c-and-cpp
regards