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

v -prod for iui throws error #21828

Closed
apetsko opened this issue Jul 8, 2024 · 1 comment
Closed

v -prod for iui throws error #21828

apetsko opened this issue Jul 8, 2024 · 1 comment

Comments

@apetsko
Copy link

apetsko commented Jul 8, 2024

V doctor:

V full version: V 0.4.6 66ea826
OS: windows, Microsoft Windows 11 Pro v22621 64-bit
Processor: 12 cpus, 64bit, little endian, 

getwd: C:\Users\esher\Desktop\coding\projects\V\UI
vexe: C:\Users\esher\v\v.exe
vexe mtime: 2024-07-08 18:13:47

vroot: OK, value: C:\Users\esher\v
VMODULES: OK, value: C:\Users\esher\.vmodules
VTMP: OK, value: C:\Users\esher\AppData\Local\Temp\v_0

Git version: git version 2.36.0.windows.1
Git vroot status: weekly.2024.27-32-g66ea8260
.git/config present: true

CC version: Error: 'cc' is not recognized as an internal or external command,

operable program or batch file.


thirdparty/tcc status: thirdparty-windows-amd64 b425ac82

What did you do?
$ v -prod ui.v

import iui as ui

fn main() {
	mut window := ui.Window.new(
		title: 'My App'
		width: 640
		height: 480
	)

	// Create Button
	mut btn := ui.Button.new(text: 'My Button')
	btn.subscribe_event('mouse_up', on_click_event)

	// Add Button to Window & Run
	window.add_child(btn)
	window.gg.run()
}

fn on_click_event(mut e ui.MouseEvent) {
	// e.
	println('Button clicked!')
}

What did you expect to see?

a prod build

What did you see instead?

$ v -prod ui.v 
==================
In file included from C:\Users\esher\AppData\Local\Temp\v_0\ui.01J29S8TXKXDJCV4MSG9WFRP1S.tmp.c:1291:
C:\Users\esher\.vmodules\iui/src/extra/winstuff.c:7:10: fatal error: timeapi.h: No such file or directory
    7 | #include <timeapi.h>
      |          ^~~~~~~~~~~
compilation terminated.
...
==================
(Use `v -cg` to print the entire error message)

builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@apetsko apetsko closed this as completed Jul 8, 2024
@apetsko
Copy link
Author

apetsko commented Jul 8, 2024

i used wrong module iui

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