Skip to content

compile error #1

@yuI4140

Description

@yuI4140

↓↓↓↓↓↓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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions