Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #1

Open
yuI4140 opened this issue Jan 6, 2023 · 0 comments
Open

compile error #1

yuI4140 opened this issue Jan 6, 2023 · 0 comments

Comments

@yuI4140
Copy link

yuI4140 commented Jan 6, 2023

↓↓↓↓↓↓main.cpp↓↓↓↓↓↓

#include "Consoler.h"

class Game : public Consoler
{
public:
	using Consoler::Consoler;
	
	void Setup() override
	{
	}
	
	void Update() override
	{
		ClearScreen();
	}
    void ShowPauseInfo() override{

    }
};

int main(){
	Game game(L"Consoler Demo", 320, 200, 1, 1, 60);
	
	game.Run();
	
	return 0;
}

Error:

undefined reference to `__imp__ZN8ConsolerD2Ev'

I compile with

g++ -Isrc/Consoler main.cpp -o MyGame.exe -DUNICODE -O3 -lwinmm -Lsrc/Consoler
 

since -lConsoler was undefined I didn't put it in the command
and I tryed with the .bat but it doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant