Giter Site home page Giter Site logo

Comments (9)

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: After turning on the force-utf8 option, the path encoding of tb_file_init under the mingw platform is inconsistent with that under Windows.

from tbox.

waruqi avatar waruqi commented on May 25, 2024

你调下这里,另外确认下 有没有开 xmake f --charset=y ,开了走 charset 转码,不开走的 libc 的 mbstowcs 接口,实现也不同

https://github.com/tboox/tbox/blob/master/src/tbox/libc/stdlib/mbstowcs.c

from tbox.

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


Adjust it here and check whether you have enabled xmake f --charset=y. If enabled, charset transcoding will be enabled. If libc's mbstowcs interface is not enabled, the implementation is also different.

from tbox.

jingkaimori avatar jingkaimori commented on May 25, 2024

加上--charset=y以后,mingw没问题,但是Windows无法编译:

error: tbox.lib(charset.c.obj) : error LNK2001: 无法解析的外部符号 __imp_CharNextExA
build\windows\x64\release\demo.exe : fatal error LNK1120: 1 个无法解析的外部命令

应该缺user32

from tbox.

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


After adding --charset=y, mingw has no problem, but Windows cannot compile:

error: tbox.lib(charset.c.obj) : error LNK2001: Unresolved external symbol __imp_CharNextExA
build\windows\x64\release\demo.exe: fatal error LNK1120: 1 unresolved external command

The user32 library should be missing

from tbox.

jingkaimori avatar jingkaimori commented on May 25, 2024

这个是demo包的问题,用xrepo里的包应该没问题

from tbox.

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


This is a problem with the demo package. It should be fine if you use the package in xrepo.

from tbox.

waruqi avatar waruqi commented on May 25, 2024

user32 我加上了

from tbox.

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


user32 I added

from tbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.