Old 28th November 2008, 13:19   #1
DarkNight2
Junior Member
 
Join Date: Nov 2008
Posts: 2
compile dll plugin problem VS08/c++

Hi,

when build c++ project i have this problem:

Error
error C2375: 'winampGetGeneralPurposePlugin' : redefinition; different linkage c:\users\filip\documents\visual studio 2008\projects\final2\final2\plugin\gentxt.c 23 final2

In this line is error:

PHP Code:
__declspec(dllexportwinampGeneralPurposePlugin winampGetGeneralPurposePlugin() { return &plugin; } 
Please help me. Thx for reply!

Last edited by DarkNight2; 28th November 2008 at 16:11.
DarkNight2 is offline   Reply With Quote
Old 28th November 2008, 16:12   #2
DarkNight2
Junior Member
 
Join Date: Nov 2008
Posts: 2
This write on C! ... when use C compiler without problems! :

*DELETE*
DarkNight2 is offline   Reply With Quote
Old 28th November 2008, 22:17   #3
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Remember, when using C++ compiler use:
code:

extern "C" someFunc(..)



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 10th December 2008, 08:58   #4
shk80
Junior Member
 
Join Date: Dec 2008
Posts: 3
As far as i know it is possible to set up that project is in C code. Go to project properties-> Configuration properties->C\C++->Advanced->Compile As: Choose "As C code(/TC)".


I have another problem. I use VS8 (2005) and I get lot of mistakes in msacm.h. Does anybody know why?
(I tried to compile the Code in C++ mode there are another mistakes, but just in same msacm.h)
shk80 is offline   Reply With Quote
Old 10th December 2008, 09:15   #5
shk80
Junior Member
 
Join Date: Dec 2008
Posts: 3
There are no mistakes now with that file. Can anybody halo with this:

Compiling...
Main.C
.\Main.C(59) : warning C4996: 'strcpy' was declared deprecated
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
.\Main.C(206) : warning C4018: '>=' : signed/unsigned mismatch
.\Main.C(227) : warning C4133: 'function' : incompatible types - from 'short [1152]' to 'char *'
Linking...
Creating library .\Release/in_tone.lib and object .\Release/in_tone.exp
Main.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function _isourfile
Main.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function _isourfile
Main.obj : error LNK2019: unresolved external symbol __CIsin referenced in function _PlayThread@4
Main.obj : error LNK2019: unresolved external symbol _memset referenced in function _play
C:/progra~1/winamp/plugins/in_tone.dll : fatal error LNK1120: 4 unresolved externals

I am trying to compile Input PLUGIN in_raw\IN_TONE.C (i renamed the file to main.c as it was told to do)
shk80 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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