Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mixed Code C/C++
#3
But be aware that type casting in g++ is different than with GCC.

e.g.
Code:
        switch( (settingsIndex_Tp)pppL)


becomes

Code:
        switch( reinterpret_cast<settingsIndex_Tp &>(pppL))


But the normal, preferable, way is what you already are doing.  C files are C files and not Cpp files.
Reply


Messages In This Thread
Mixed Code C/C++ - by harry71 - 04-01-2024, 11:16 AM
RE: Mixed Code C/C++ - by embitz - 04-01-2024, 06:17 PM
RE: Mixed Code C/C++ - by embitz - 04-01-2024, 06:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)