Weird warning when using loadlibrary - said it created a library and an object??

조회 수: 1 (최근 30일)
Hey,
I'm trying to load a c++ dll file and I'm getting a weird warning, this is the code:
shrlib = 'C:\Users\Public\PI\PI_Programming_Files_PI_GCS2_DLL\PI_GCS2_DLL_x64.dll';
hfile = 'C:\Users\Public\PI\PI_Programming_Files_PI_GCS2_DLL\PI_GCS2_DLL.h';
libalias = 'PI';
[~,warnings]=loadlibrary(shrlib,hfile,'alias',libalias)
And this is the warning I'm getting:
PI_thunk_pcwin64.c
Creating library PI_thunk_pcwin64.lib and object PI_thunk_pcwin64.exp
Anyone has any idea what this warning means?
I should point out that it seems everything works fine, it is just out of curiosity! I've attached the dll and h file, but digging into the h file I couldn't find out what the hell it is.
p.s.
I'm using windows SDK 7.1

채택된 답변

Philip Borghesani
Philip Borghesani 2014년 5월 29일
Creating those files is harmless, and a side effect of building the thunk file, but unneeded. It sounds to me like there is a minor bug in the processes of building the thunk file. Minimally the message you are seeing should have been suppressed.
If it bothers you I suggest you contact support and/or file a bug report.
  댓글 수: 1
Yoav Romach
Yoav Romach 2014년 5월 29일
This is more or less what I thought, Just wanted to make sure...
Is it the compiler fault (windows SDK) or Matlab?
Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by