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

Can't compile on linux #43

Closed
3ZVK opened this issue Jan 25, 2016 · 5 comments
Closed

Can't compile on linux #43

3ZVK opened this issue Jan 25, 2016 · 5 comments

Comments

@3ZVK
Copy link

3ZVK commented Jan 25, 2016

link.txt is setup like it push the compiled file as armips in a dir where a armips dir exist,
you could setup a build folder in root dir and link.txt output as "-o build/armips -rdynamic"

@Matsumot0
Copy link

I can compile armips on linux without any problem
http://i.imgur.com/MhQMAng.png,

But not on windows with MinGW...
http://i.imgur.com/eEFka28.png

Thanks in advance.
PS: Sorry i don't want open a issue ticket for that maybe i've miss something.

@Kingcom
Copy link
Owner

Kingcom commented Jan 26, 2016

@3ZVK : I'm not really sure what you mean. Can you try to explain your issue? As @Matsumot0 said, building on Linux seems to work.

@Matsumot0 : Can you try putting this into stdafx.h, after #pragma once, and see if it helps?

#ifndef UNICODE
#define UNICODE
#endif

#ifndef _UNICODE
#define _UNICODE
#endif

@Matsumot0
Copy link

Thanks for your answer, it works almost 👍
But i've had another invalid conversion

http://i.imgur.com/EAZCQWv.png

Edit: Some progress, I've set #define swprintf _snwprintf into stdafx.h between #ifdef _WIN32 to #endif useless

http://i.imgur.com/6IKZ9YB.png

@Kingcom
Copy link
Owner

Kingcom commented Jan 26, 2016

It looks like you don't have sufficient C++11 support (namely, for std::thread). Try looking for a newer version.

@Matsumot0
Copy link

Ok thanks i've changed something but...

http://i.imgur.com/kguplS7.png

As you can see, MinGW64 can finalized the binary... after 100% complete :(

Edit: Finally it's working!
Solution found here: http://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/

#ifndef _UNICODE
#define _UNICODE
#endif

#ifndef UNICODE
#define UNICODE
#endif

#include <wchar.h>
#include <stdio.h>

in main.cpp i need to set extern "C" like this

extern "C"
int wmain(int argc, wchar_t* argv[])

and i set -municode -static in CMakeLists.txt before do cmake -G "MinGW Makefiles"
and it's works fine 👍 without dll needed

@Kingcom Kingcom closed this as completed Nov 17, 2016
unknownbrackets added a commit to unknownbrackets/armips that referenced this issue Jun 17, 2018
e2eb063 Change everything to use wide char types
33d61f3 Merge pull request Kingcom#49 from krlmlr/f-assert
09cdb40 include cassert only if necessary
8f60162 Merge pull request Kingcom#48 from krlmlr/f-assert
072a0c6 new TINYFORMAT_ASSERT() macro
689695c Remove unnecessary FormatList constructor
6b79b4b Merge pull request Kingcom#43 from nigels-com/formatarg-initialisation
48e2e48 Use NULL rather than nullptr, private default (undefined) constructor
5d9e05a nullptr initialisation of FormatArg pointers, runtime debug mode checks for nullptr
46a6d77 Merge pull request Kingcom#39 from pkunavin/master
8a2812d Fix GCC-7 Wimplicit-fallthrough warnings.
d563f7f Enable experimental VS2017 in CI
b6776f3 Add appveyor & travis CI badges
b9d1452 Convert README to markdown
4886706 Merge pull request Kingcom#37 from c42f/cmakeify-argh
df7c47d Appveyor CI build and MSVC tweaks
182e2b6 Remove simplistic Makefile.nmake
eec35f0 Remove cmake test matrix script
08d2a09 Travis build on OSX + clang
a6a8801 Manually fill out the build matrix
8125ad2 Travis build matrix setup for linux
278969c Cmake build for tests to eventually replace nmake
3a33bbf Minimal gcc 4.9 Travis build coverage
6f47210 Resolve coverity defects concerning potential dead code and uncaught exceptions
0586189 Workaround min macro for windows.h
ab60795 Fix switch default
42d6a0c Fix useless cast
96de1a1 Add -Werror to makefile
5abc03b Fix clang -Wuninitialized warning
fd72f9c Fix for VS2015: _set_output_format() is no longer available nor needed.
REVERT: b7f5a22 Change everything to use wide char types

git-subtree-dir: ext/tinyformat
git-subtree-split: e2eb06339c21d15db13cd8aa44a4b287970124f4
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

3 participants