15,910,980 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13922009 (Top 6 by date)
Member 13922009
9-Sep-19 9:23am
View
Thank you, I just solved that warning. I change nlopt to Win32 from 64x platform using cmake. I did it because because win32 platform is used in my program. I follow your advice on my objective function "myfunction" and "myconstraint". Thank you for helping me. :)
Member 13922009
4-Sep-19 12:28pm
View
I remove the nlopt_ prefixes
Member 13922009
4-Sep-19 7:24am
View
yes, do you know how to solve this ?
Member 13922009
4-Sep-19 7:22am
View
I tried your advice, but I got same errors :
Warning 1 warning C4717: 'NonlinearOpt::nlopt_add_inequality_constraint' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 137
Warning 4 warning C4717: 'NonlinearOpt::nlopt_create' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 146
Warning 2 warning C4717: 'NonlinearOpt::nlopt_optimize' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 161
Warning 5 warning C4717: 'NonlinearOpt::nlopt_set_lower_bounds' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 151
Warning 3 warning C4717: 'NonlinearOpt::nlopt_set_min_objective' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 166
Warning 6 warning C4717: 'NonlinearOpt::nlopt_set_xtol_rel' : recursive on all control paths, function will cause runtime stack overflow d:\program\robotsimu190902\robotsimu\nonlinearopt.cpp 156
same messages. It will be works in single program, but when I implement in one class in my program that has several cpp and header files, this error always occur
Member 13922009
28-Mar-19 13:15pm
View
but when I tried it, still error
Member 13922009
28-Mar-19 13:10pm
View
Here this error:
nonlinearoptimization.cpp(274): error C3867: 'CNonlinearOptimization::myfunction': function call missing argument list; use '&CNonlinearOptimization::myfunction' to create a pointer to member
nonlinearoptimization.cpp(276): error C3867: 'CNonlinearOptimization::myconstraint1': function call missing argument list; use '&CNonlinearOptimization::myconstraint1' to create a pointer to member
Show More