Cruisers Forum

Join CruisersForum Today

Thread Tools Rate Thread Display Modes
Old 13-08-2012, 05:50   #1
Registered User

Join Date: Aug 2012
Location: Brazil
Posts: 4
Compiling Error

Visual studio 9 2008; windows 7; wxwidgets2.8; opencpn3.1.7

Error 1 error C2664: 'wcstombs' : cannot convert parameter 2 from 'const wxChar *' to 'const wchar_t *' c:\OpenCPN-3.1.7\src\navutil.cpp 6256 opencpn

Error 2 error C2664: 'LoadLibrary' : cannot convert parameter 1 from 'LPCWSTR' to 'LPCSTR' c:\OpenCPN-3.1.7\src\chcanv.cpp 389 opencpn

Are there any problem with unicode?
I have changed wxwidgets - setup.h glcanvas and graphics to 1 unicode 1
I am compiling opencpn with dll debug.

Please, can you help me?
ailton is offline   Reply With Quote
Old 13-08-2012, 06:19   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 3,881
Re: compiling error

Looks like a unicode problem. Clean up the wxwidgets build artifacts and go through the build instructions again. Especially take note that our supported toolchain is VS2010 based - If you produce the setup package with 2008 toolchain, it will not work for sure out of the box. The compilation itself MIGHT still work, but I din't try since early 2.6 betas. If you follow the instructions exactly, you should not have any problems.

nohal is online now   Reply With Quote
Old 13-08-2012, 06:22   #3
Marine Service Provider
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,465
Re: compiling error


Visual studio 9 2008 should compile and run OK, except that the pre-built PlugIns available on the site will refuse to load.

bdbcat is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:42.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.