Probleme mit SA:MP GDK

01/08/2013 18:47 Narushi#1
Kann mir mal bitte einer helfen? :X
Ich habe es nun hinbekommen, (Pack runtergeladen) und da sind noch ein paar Errors, wegen den Includes in den Includes. Wieso kommt das?

Code:
20	0	c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\plugincommon.h	In file included from c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/sampgdk/plugincommon.h
20		c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\plugin.h	                 from c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/sampgdk/plugin.h
21		c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\a_samp.h	                 from c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/sampgdk/a_samp.h
19		c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\a_objects.h	                 from c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\bin\../lib/gcc/mingw32/4.7.0/../../../../include/sampgdk/a_objects.h
1		C:\Users\Narushi\Desktop\Scripting\C++\Dev-Cpp\Sh12\plugin.cpp	                 from C:\Users\Narushi\Desktop\Scripting\C++\Dev-Cpp\Sh12\plugin.cpp
32	21	c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\sdk\plugincommon.h	Not using a VC++ compiler.
			[Linker error] C:\Users\Narushi\Desktop\Scripting\C++\Dev-Cpp\MinGW32\lib/libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `_WinMain@16'
		C:\Users\Narushi\Desktop\Scripting\C++\Dev-Cpp\Sh12\collect2.exe	[Error] ld returned 1 exit status
01/09/2013 14:01 TIMΣ™#2
Erstmal was ist mit SA:MP GDK gemeint, denn das klingt nach San Andreas Multiplayer. Und das ist doch nur eine Errormeldung, oder nicht? Ansonsten zeig doch mal einfach den Code der dir Probleme bereitet.
01/09/2013 15:15 Narushi#3
Quote:
Originally Posted by TIMΣ™ View Post
Erstmal was ist mit SA:MP GDK gemeint, denn das klingt nach San Andreas Multiplayer. Und das ist doch nur eine Errormeldung, oder nicht? Ansonsten zeig doch mal einfach den Code der dir Probleme bereitet.
Jap, das ist ein Pack für SA:MP.
Das ist der Hier: [Only registered and activated users can see links. Click Here To Register...]

Mein Code ist nix, ausser die Includes.
Das hier ist der komplette Code:

Code:
#include <sampgdk/a_objects.h>
#include <sampgdk/a_players.h>
#include <sampgdk/a_samp.h>
#include <sampgdk/a_vehicles.h>
#include <sampgdk/core.h>
#include <sampgdk/plugin.h>
Wenn ich nun compile zeigt es die Errors an, und springt zu dem Include plugincommon.h und zeigt die Zeile an:

Code:
/* Copyright (C) 2012 Zeex
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef SAMPGDK_PLUGINCOMMON_H
#define SAMPGDK_PLUGINCOMMON_H

#include <sampgdk/platform.h> /* for the LINUX macro */

/////////////////////////////// DIESE WIRD ANGEZEIGT ////////////////////////////////////////
#include <sampgdk/sdk/plugincommon.h>
/////////////////////////////// DIESE WIRD ANGEZEIGT ////////////////////////////////////////

#endif /* !SAMPGDK_PLUGINCOMMON_H */
01/09/2013 16:57 kissein#4
Quote:
32 21 c:\users\narushi\desktop\scripting\c++\dev-cpp\mingw32\include\sampgdk\sdk\plugincommon.h Not using a VC++ compiler.
Sie so aus als könnte _MSC_VER nicht ermittelt werden. Für mal "cl /?" in der Konsole aus um die Compilerversion zusehen.
01/09/2013 21:01 Narushi#5
Quote:
Originally Posted by kissein View Post
Sie so aus als könnte _MSC_VER nicht ermittelt werden. Für mal "cl /?" in der Konsole aus um die Compilerversion zusehen.

In welcher COnsole? ^^