LIBCD.lib(wincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WinMain@16



  • bin grade am lernen und teste a bissl mit primzahlen rum 😃

    #include <iostream.h>
    class getPrim
    {
    private:
    	int *array;
    	int got;
    	int till;
    	int from;
    public:
    getPrim(int Mfrom, int Mtill) {
    	till = Mtill;
    	from = Mfrom;
    	 array = new int[till-from];
    }
    void showPrim()
    {
    	for(int g = 0; g<=till; ++g) 
    	{
    		array[g] = from+g;
    	}
    	for(int i = 0; i<=till; ++i) 
    	{
    		if(array[i] == 1)
    			array[i] = 0;
    		if(array[i] != 0) 
    		{
    			for(int x = i+1; x<=till; ++x) 
    			{
    				if(array[x]%array[i] == 0)
    				{
    					array[x] = 0;
    				}
    			}
    			cout<<array[i]<<endl;
    		}
    	}
    }
    };
    void main()
    {
    	int a, b;
    	cin>>a;
    	cin>>b;
    	getPrim prim(a,b);
    	prim.showPrim();
    }
    

    so siehts aus...Fehler:
    LIBCD.lib(wincrt0.obj) : error LNK2001: Nichtaufgeloestes externes Symbol _WinMain@16
    Debug/Prim.exe : fatal error LNK1120: 1 unaufgeloeste externe Verweise



  • hallo

    hast ein falsches projekt angelegt..

    mach eine win32 konsolenanwendung

    so long



  • LOL ^^ ok danke...(ich depp)


Anmelden zum Antworten