SAP Note 1056696 - Compiling and Linking RFC Programs with the SAP NW RFC SDK

Component : RFC -

Solution : https://service.sap.com/sap/support/notes/1056696 (SAP Service marketplace login required)

Summary :
This SAP Note outlines the necessary procedures and prerequisites for compiling C/C++ programs with the SAP NW RFC SDK across various platforms. To ensure compatibility, an ANSI C compatible compiler and correct path settings for the SDK's include and library directories are required. The note recommends using the same compiler version as the one used for compiling the NW Solutions Framework to prevent potential issues. Detailed commands for compiling and linking are provided for multiple systems including Windows, HP-UX, Solaris, and Linux, each with specific flags and options adjusted for the system architectures and compiler requirements. Additionally, some systems require a pre-compilation step using a Perl script, as detailed in SAP Note 763741.

Key words :
-fno-strict-aliasing -fno-omit-frame-pointer -m64 -fexceptions -funsigned-char -wall -wno-uninitialized -wno-long-long -wcast-align -pthread -fpic -, -fno-strict-aliasing -fno-omit-frame-pointer  -m64 -fexceptions -funsigned-char -wall -wno-uninitialized -wno-long-long -wcast-align -pthread -fpic -, ++ -o2 -march=i686 -fexceptions -funsigned-char -fno-strict-aliasing -wall -wno-uninitialized -wcast-align -wno-trigraphs -fpic -pthread -minline-, 16/bin -falign-functions=32 -fexceptions -funsigned-char -fno-strict-aliasing -wall -wno-uninitialized -wcast-align -wno-trigraphs -fpic -pthread -, cc -dsaponunix -dsaponsun -dsapwithunicode -dsapwiththreads -d__extensions__ -d__xpg4_char_class__ -d_posix_pthread_semantics -xtarget=ultra -xarch=v9 -xchar=unsigned -xustr=ascii_utf16_ushort -, strict -gy -gf -ehs -z7 -w3 -wp64 -d_x86_ -dwin32 -dsapwithunicode -dunicode -d_unicode -md -d_afxdll -fr -, -qstrict -qlibansi -qinlglue -qmaxmem=8192 -dndebug -qarch=ppc -qtune=pwr5 -qspill=2560 -dsaponrs6000 -dsapwithpase400 -dos_level=530 -d__no_xlc_builtin_va -d_packed= -, ii                     xlc_r -dsaponunix  -dsapwithunicode -d_aix51 -d_large_files -u__unix -q64 -qlonglong -qalign=natural -qldbl128 -dsapwiththreads -qtbtable=full -qhalt=, xlc_r -dsaponunix  -dsapwithunicode -d_aix51 -d_large_files -u__unix -q64 -qlonglong -qalign=natural -qldbl128 -dsapwiththreads -qtbtable=full -qhalt=, -qstrict -qlibansi -qinlglue -qmaxmem=8192 -dndebug -qarch=ppc -qtune=pwr5 -qspill=2560 -dsaponrs6000 -d__no_xlc_builtin_va -

Related Notes :

1097997Installing SAP NW RFC SDK in system i
763741Skript for string literal support for Unicode RFC SDK