Calling C++ functions from C
-
Hello everyone, Is there a way from a C program I can call C++ functions without getting C++ linkage errors? I know that if I wanted from C++ to call C functions I declare them with extern "C", but what about the other way around? Thanks Best regards, Alexandru Savescu
-
Hello everyone, Is there a way from a C program I can call C++ functions without getting C++ linkage errors? I know that if I wanted from C++ to call C functions I declare them with extern "C", but what about the other way around? Thanks Best regards, Alexandru Savescu
You need to link with 'post_in_right_forum.lib'. Tomasz Sowinski -- http://www.shooltz.com
** If you're going to rape, pillage and burn, be sure to do things in that order. ** -
Hello everyone, Is there a way from a C program I can call C++ functions without getting C++ linkage errors? I know that if I wanted from C++ to call C functions I declare them with extern "C", but what about the other way around? Thanks Best regards, Alexandru Savescu
linker error: something wrong with your forum selection (extern "C" is for c to cpp calls) t!
-
You need to link with 'post_in_right_forum.lib'. Tomasz Sowinski -- http://www.shooltz.com
** If you're going to rape, pillage and burn, be sure to do things in that order. **Tomasz Sowinski wrote: You need to link with 'post_in_right_forum.lib'. Is that ANSI or ISO compliant? :-D Jeremy L. Falcon "The One Who Said, 'The One Who Said...'" Homepage: imputek.com
-
Tomasz Sowinski wrote: You need to link with 'post_in_right_forum.lib'. Is that ANSI or ISO compliant? :-D Jeremy L. Falcon "The One Who Said, 'The One Who Said...'" Homepage: imputek.com
Jeremy Falcon wrote: Is that ANSI or ISO compliant? No. But they're considering it for inclusion in C++/2010 standard ;) Tomasz Sowinski -- http://www.shooltz.com
** If you're going to rape, pillage and burn, be sure to do things in that order. ** -
Jeremy Falcon wrote: Is that ANSI or ISO compliant? No. But they're considering it for inclusion in C++/2010 standard ;) Tomasz Sowinski -- http://www.shooltz.com
** If you're going to rape, pillage and burn, be sure to do things in that order. **Tomasz Sowinski wrote: No. But they're considering it for inclusion in C++/2010 standard Can't wait... Real World Coding: POP& BuyAPop(Money ADollar){...};