- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, All:
I'm a beginner of IPP. After configuration followed the "Getting Started with Intel IPP", I tried some sample code which successfully went through. Then I wanna try some simple function code, like below. The problem is that this code could compile (Ctrl+F7) but failed when I tried to link using F7. It said: "unresolved external symbol _ippiMalloc_8u_C3@12 referenced in function _main"
Can anybody please help out.
Thanks,
==================================
#include "stdafx.h"
#include
int main()
{
IppiSize size={320,240};
int stride;
Ipp8u* pSrc = ippiMalloc_8u_C3(size.width,size.height,&stride);
return 0;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, All:
I'm a beginner of IPP. After configuration followed the "Getting Started with Intel IPP", I tried some sample code which successfully went through. Then I wanna try some simple function code, like below. The problem is that this code could compile (Ctrl+F7) but failed when I tried to link using F7. It said: "unresolved external symbol _ippiMalloc_8u_C3@12 referenced in function _main"
Can anybody please help out.
Thanks,
==================================
#include "stdafx.h"
#include
int main()
{
IppiSize size={320,240};
int stride;
Ipp8u* pSrc = ippiMalloc_8u_C3(size.width,size.height,&stride);
return 0;
}
You should link your application with ippi.lib. In visual studio use properties ( of your project ) linkerinputadditional dependencies.
Regards, Rob
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, All:
I'm a beginner of IPP. After configuration followed the "Getting Started with Intel IPP", I tried some sample code which successfully went through. Then I wanna try some simple function code, like below. The problem is that this code could compile (Ctrl+F7) but failed when I tried to link using F7. It said: "unresolved external symbol _ippiMalloc_8u_C3@12 referenced in function _main"
Can anybody please help out.
Thanks,
==================================
#include "stdafx.h"
#include
int main()
{
IppiSize size={320,240};
int stride;
Ipp8u* pSrc = ippiMalloc_8u_C3(size.width,size.height,&stride);
return 0;
}
You should link your application with ippi.lib. In visual studio use properties ( of your project ) linkerinputadditional dependencies.
Regards, Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running into the same issue. I checked and found that under the projects options that I was not refrencingia32stublib which is where the lib you mentioned resides. This did not work for me, im still getting the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying
That's grate. Are you using pre-compled headers? Where there any settings you had to change in VS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You should link your application with ippi.lib. In visual studio use properties ( of your project ) linkerinputadditional dependencies.
Regards, Rob
Great! this works. I tried this method and also adding ippi.lib to project/properties/linker/command line/additional options.
Thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ying
The error i keep getting is :
Error 15 error LNK2001: unresolved external symbol _ippMalloc@4 jpegbase.obj
for each of the object files that VS 2005 generates when it trys to build
In options > VC++ dirs > Lib Files i have added :
C:Program FilesIntelIPP5.3.1.064ia32lib andC:Program FilesIntelIPP5.3.1.064ia32stublib
In the project properties > linker > input > Additional Dependencies :
"C:Program FilesIntelIPP5.3.1.064ia32stublibippi.lib"
The includes and bin folders have been added to the C++ directories as well.
I have pre compiled headers disabled from the default of "use precompiled headers" to resolve an issue with stdafx.h not being included in the origal H files.
What other settings could i change to get this error to stop occuring? I have looked into trying to use the same paramters the build32.bat file uses to build the application but I dont understand batch that well. If you could provide these parameters I could bypass any issues that could be because of the IDE and run the compiler and linker directly.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vladimir

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page