SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAPScript - Smartforms

Similar Threads
Thread Thread Starter Forum Replies Last Post
EXEC SQL - External Database Insert multiple rows ERP SAP ABAP 2 03-16-2011 08:38 PM
internal table and field symbol Zumba SAP ABAP 2 02-26-2011 11:16 PM
Where to customize external parameters? Ramma SAP BASIS 1 07-15-2010 01:43 PM
REUSE_ALV_LIST_DISPLAY' Field symbol has not yet been assigned Gurla SAP ABAP 1 05-25-2010 03:09 PM
Subcontracting and/or external procurement papa SAP PP - Product Planning 0 02-08-2010 12:28 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2011, 09:14 PM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default LNK2019: unresolved external symbol _RfcOpenEx

Hi experts,

* i downloaded the SAP RFC SDK 7.20 unicode (Windows Server on IA32 32bit)
* opened VisualStudio 2010
* created new MFC dialog based project
* added additional include directories (linked to SDK folder)
* added additional library folders (also linked to SDK directory)
* added librfc32u.lib;libsapucum.lib as additional dependency
* added #include "saprfc.h"
* put some code into the project

void CsaprfcsdkDlg::OnBnClickedButton1()
{

RFC_HANDLE rfc_handle;
RFC_ERROR_INFO_EX rfc_err_inf_ex;
rfc_handle = RfcOpenEx("",&rfc_err_inf_ex);

}
and tried to compile ... the result is an error that the external symbol RfcOpenEx is unresolved.

1>------ Build started: Project: saprfcsdk, Configuration: Debug Win32

1> saprfcsdkDlg.cpp
1>saprfcsdkDlg.obj : error LNK2019: unresolved external symbol _RfcOpenEx@8 referenced in function "public: void __thiscall CsaprfcsdkDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CsaprfcsdkDlg@@QAEXXZ)
1>...\saprfcsdk\Debug\saprfcsdk.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Anyone has an idea what i am doing wrong ?

I have a Win7 64Bit running but i also tried it on VS2003 and WinXP ... but got the same error.

Thanks for your hints.

Pepa
Reply With Quote
Sponsors
  #2  
Old 08-15-2011, 09:15 PM
Mirna Mirna is offline
Senior Member
 
Join Date: May 2010
Location: Alabama
Posts: 267
Default Re: LNK2019: unresolved external symbol _RfcOpenEx

Hi Pepa,

I also have exactly the same linker-problems, after I adapted our sourcecode
to be unicode-conform. A simple test-solution within a
VisualStudio 2010 environment (Win7/64bit) using librfc32u.dll
caused the same error-message.

Looking for solutions of similar problems within the WEB had no succeed.

Thanks for any hint!

Mirna
Reply With Quote
  #3  
Old 08-15-2011, 09:17 PM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default Re: LNK2019: unresolved external symbol _RfcOpenEx

Hi Mirna,

what i have found is ....

in the saprfc.h is an define for unicode .... maybe it is enough to set the "SAPwithUNICODE"

an alternative would be that Stephan Sell will write an answer here ;-)

When you have any test results i would be interested if it works ...
#ifndef RFC_API_ENTRY
# if defined(SAPwithUNICODE)

/* we have UNICODE */
# define RFC_API_ENTRY(fn) fn##U

/* Stephan Sell - 29.07.2008 */
/* disabled due to change (CL 1000445) in sapgendef.pl */
/* # elif defined(SAPonOS390) && defined(SAPwithCHAR_ASCII) */
/* */
/* OS/390 with ASCII char */
/* # define RFC_API_ENTRY(fn) fn##A */

# else
/* default native char type */
# define RFC_API_ENTRY(fn) fn

# endif
#endif

Regards,
Pepa
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:14 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno