Author Topic: C++ help needed  (Read 12672 times)

0 Members and 1 Guest are viewing this topic.

GStricto

  • Elvin Legion
  • *****
  • Posts: 463
  • Reputation: +0/-0
(No subject)
« Reply #30 on: December 27, 2004 05:57 pm CST »
Code: [Select]
Unable to open object file C:\Gladio Bot\Source\dlltool Bot.dll
 C:\Gladio Bot\Source\Makefile.win [Build Error]  ["Gladio] Error 1


After about 30 min of figuring out some of the little bits that Visual C++ allows that BloodShed doesn't, I finally got it to compile...  Or I would have, that was the only message I recieved.  I'm completely lost here.

Ozzy, maybe you should give me some way to contact you besides here...  Like AIM or something, I think my info is in my profile.
« Last Edit: December 31, 1969 06:00 pm CST by GStricto »

Quote from: "Artorius"
Gnight.... Gstricto is obviously picking on you because he is a dirty racist.
So ironic that a heart made by man, when broken is easily fixed.   But a human hurt can last a lifetime.

GStricto

  • Elvin Legion
  • *****
  • Posts: 463
  • Reputation: +0/-0
(No subject)
« Reply #31 on: May 29, 2005 03:57 pm CDT »
Here I go with a bump again...

I'm posting this on a few different forums hoping someone can help me out.
I switched the build back from Bloodshed to Visual C++ and everything "compiles" - the .obj files are built, but then when they should be linked to a .dll this junk comes from nowhere (note that the compile does not even have warnings):

Code: [Select]
--------------------Configuration: gladio_plugin - Win32 Debug--------------------
Compiling...
gladio_main.cpp
gladio_util.cpp
gladio_windows.cpp
Linking...
gladio_util.obj : error LNK2005: "struct HWND__ * mMainWnd" (?mMainWnd@@3PAUHWND__@@A) already defined in gladio_main.obj
gladio_util.obj : error LNK2005: "int (__cdecl* plugin_send)(char *,char *,void *)" (?plugin_send@@3P6AHPAD0PAX@ZA) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "int __cdecl prefDialog(struct HWND__ *,unsigned int,unsigned int,long)" (?prefDialog@@YAHPAUHWND__@@IIJ@Z) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "struct HWND__ * __cdecl myCreateDialog(struct HINSTANCE__ *,char const *,struct HWND__ *,int (__stdcall*)(struct HWND__ *,unsigned int,unsigned int,long))" (?myCreateDialog@@YAPAUHWND__@@PAUHINSTANCE__@@PBDPAU1@P
6GH2IIJ@Z@Z) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "void __cdecl myDestroyWindow(struct HWND__ *)" (?myDestroyWindow@@YAXPAUHWND__@@@Z) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "struct HWND__ * prefs_window" (?prefs_window@@3PAUHWND__@@A) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "struct HWND__ * mMainWnd" (?mMainWnd@@3PAUHWND__@@A) already defined in gladio_main.obj
gladio_windows.obj : error LNK2005: "int (__cdecl* plugin_send)(char *,char *,void *)" (?plugin_send@@3P6AHPAD0PAX@ZA) already defined in gladio_main.obj
.\gladio.def : fatal error LNK1119: invalid ordinal number "0"
LINK : fatal error LNK1141: failure during build of exports file
Error executing link.exe.

gladio.dll - 10 error(s), 0 warning(s)

Again, please note that this is not compile, this is linking that this stuff comes up.  I have searched all source for the functions it is claiming I already used, and they each appear only once (no reusing the name in other files or overloading).
« Last Edit: December 31, 1969 06:00 pm CST by GStricto »

Quote from: "Artorius"
Gnight.... Gstricto is obviously picking on you because he is a dirty racist.
So ironic that a heart made by man, when broken is easily fixed.   But a human hurt can last a lifetime.