Author Topic: Assertation failure when trying to compile  (Read 409 times)

Offline HurgleGurgle

  • Single posting newcomer
  • *
  • Posts: 2
Assertation failure when trying to compile
« on: March 11, 2018, 02:25:27 am »
I've been trying to get CodeBlocks 17.12-1 to work on Linux Mint. So far, I can open the program and write code in it, but when I save the file and try to build it, I get this error:

./src/common/strconv.cpp(3018): assert "Assert failure" failed in wxCSConv(): invalid encoding value in wxCSConv ctor

Can anyone tell me what this means and how to fix it?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10841
    • Travis build status
Re: Assertation failure when trying to compile
« Reply #1 on: March 11, 2018, 12:06:02 pm »
What is the encoding for the file you're using?
Are you sure you have typed characters correctly for this enconding in the whole file?

What happens if you click the continue button in the wxAssert dialog?

I guess you're hitting this problem: https://sourceforge.net/p/codeblocks/tickets/305/
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline HurgleGurgle

  • Single posting newcomer
  • *
  • Posts: 2
Re: Assertation failure when trying to compile
« Reply #2 on: March 11, 2018, 10:52:07 pm »
I'm using UTF-8. I'm not quite sure what you mean by the second question. When I click the continue button, the document does save, but it doesn't compile. It's only a simple "Hello world" program, so there's nothing wrong with the code.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6221
    • My Best Post
Re: Assertation failure when trying to compile
« Reply #3 on: March 12, 2018, 01:58:11 am »
I'm using UTF-8. I'm not quite sure what you mean by the second question. When I click the continue button, the document does save, but it doesn't compile. It's only a simple "Hello world" program, so there's nothing wrong with the code.

Post the full build log!

Edit: Add post the editor encoding settings
« Last Edit: March 12, 2018, 02:01:27 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org