Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29246 Discussions

How to declare and use a C++ wchar variable in a F90 module?

aid-usman
Beginner
402 Views

Is there a way to use way to pass wchar defined character variables from a C++ program to a fortran subroutine or module.

If the character variables in the C++ program are declare as char, then it is clear for me how to do this.

Thanks,

Aid

0 Kudos
1 Reply
Steven_L_Intel1
Employee
402 Views
I would define these in Fortran as an array of INTEGER(2). You'll need to call external routines to process them.
0 Kudos
Reply