#Windows Compiling Error

5 messages · Page 1 of 1 (latest)

potent glen
#

When i have this line in my code (generated by the init Command from Tauri), then the application fails to compile. at dev and build. but when i comment it out, all works fine. does anyone knows, if this line is important ?

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#

Error: error: an inner attribute is not permitted in this context

pure iron
#

Yes, that code is pretty important if you don't want to have an eternal console window attached to your application.

#

You can usually fix that error. What code are you trying to write near it?

turbid horizon
#

Also make sure it's at the very top (first line! - except comments) of your main.rs entry file and nowhere else.