Call function from DLL

If I have some functions in a C++ DLL code, how can I call them without using _stdcall? Like this:

1
2
3
4
5
6
#include "libFluff.h" // dll header

int main() {
    SetColor(10); // this is the function in the dll
    cout << "hello";
}


I'm using code blocks 12.11 with mingw.
All right guys, I've got the above post down, but here's the new problem:

My console runs fine via F9 in Code::Blocks, but when I double-click it outside of Code::Blocks it opens, but the crashes immediately. Fixes?
Topic archived. No new replies allowed.