Hi again,
thx for your reply,
i tried with command line and it creates the main.exe file then i execute it but it closes immediately if i remember well with codeblocks we have to press any key to close the console but here it pops up then closes.
well i tried again with codeblocks and had the same error :-/