Error: 'std::io::println' could not be found
goyalyashpal opened this issue · comments
$ c3c --version
C3 Compiler Version (alpha): 0.5.5
Installed directory: D:/.../c3-windows/
LLVM version: 16.0.2
LLVM default target: x86_64-pc-windows-msvc
$ systeminfo | grep -iA1 "os name"
OS Name: Microsoft Windows 10 Home Single Language
OS Version: 10.0.19045 N/A Build 19045
error logs:
$ c3c compile hello.c3
2:
3: fn void main()
4: {
5: io::println("Namaste, world!");
^^^^^^^
(D:/.../hello.c3:5:6) Error: 'io::println' could not be found, did you spell it right?
3: fn void main()
4: {
5: io::println("Namaste, world!");
6: std::io::println("Namaste, world!");
^^^^^^^
(D:/.../hello.c3:6:11) Error: 'std::io::println' could not be found, did you spell it right?
file: hello.c3
(highlighter used: zig
)
import std::io;
fn void main()
{
io::println("Namaste, world!");
std::io::println("Namaste, world!");
}
directory structure of c3-windows
folder
$ du -ahd1
90M ./c3c.exe
1.2M ./lib
8.0K ./msvc_build_libraries.py
721M ./msvc_sdk
812M .
$ tree --dirsfirst -dL 3 --prune
.
├── lib
│ └── std
│ ├── collections
│ ├── core
│ ├── crypto
│ ├── encoding
│ ├── hash
│ ├── io
│ ├── libc
│ ├── math
│ ├── net
│ ├── os
│ ├── sort
│ ├── threads
│ └── time
└── msvc_sdk
└── x64
├── enclave
├── onecore
├── store
└── uwp
22 directories
installation logs:
$ py msvc_build_libraries.py
Downloading MSVC v14.39.17.9 and Windows SDK v22621
Do you accept Visual Studio license at https://go.microsoft.com/fwlink/?LinkId=2179911,
and also confirm that you have a valid license Visual Studio license allowing you to
download the VS Build Tools [Y/N] ?y
microsoft.vc.14.39.17.9.asan.headers.base ... 100%
microsoft.vc.14.39.17.9.crt.x64.desktop.base ... 100%
microsoft.vc.14.39.17.9.crt.x64.store.base ... 100%
microsoft.vc.14.39.17.9.asan.x64.base ... 100%
Windows SDK for Windows Store Apps Libs-x86_en-us.msi ... 100%
Windows SDK Desktop Libs x64-x86_en-us.msi ... 100%
Universal CRT Headers Libraries and Sources-x86_en-us.msi ... 100%
05047a45609f311645eebcac2739fc4c.cab ... 100%
0b2a4987421d95d0cb37640889aa9e9b.cab ... 100%
13d68b8a7b6678a368e2d13ff4027521.cab ... 100%
463ad1b0783ebda908fd6c16a4abfe93.cab ... 100%
5a22e5cde814b041749fb271547f4dd5.cab ... 100%
ba60f891debd633ae9c26e1372703e3c.cab ... 100%
e10768bb6e9d0ea730280336b697da66.cab ... 100%
f9b24c8280986c0683fbceca5326d806.cab ... 100%
58314d0646d7e1a25e97c902166c3155.cab ... 100%
16ab2ea2187acffa6435e334796c8c89.cab ... 100%
2868a02217691d527e42fe0520627bfa.cab ... 100%
6ee7bbee8435130a869cf971694fd9e2.cab ... 100%
78fa3c824c2c48bd4a49ab5969adaaf7.cab ... 100%
7afc7b670accd8e3cc94cfffd516f5cb.cab ... 100%
80dcdb79b8a5960a384abe5a217a7e3a.cab ... 100%
96076045170fe5db6d5dcf14b6f6688e.cab ... 100%
a1e2a83aa8a71c48c742eeaff6e71928.cab ... 100%
b2f03f34ff83ec013b9e45c7cd8e8a73.cab ... 100%
beb5360d2daaa3167dea7ad16c28f996.cab ... 100%
eca0aa33de85194cd50ed6e0aae0156f.cab ... 100%
f9ff50431335056fb4fbac05b8268204.cab ... 100%
Unpacking msi files...
Use io::printn
.