René's URL Explorer Experiment


Title: C2064 Error when building simple_dae on Windows · dae-cpp/dae-cpp · Discussion #57 · GitHub

Open Graph Title: C2064 Error when building simple_dae on Windows · dae-cpp/dae-cpp · Discussion #57

X Title: C2064 Error when building simple_dae on Windows · dae-cpp/dae-cpp · Discussion #57

Description: C2064 Error when building simple_dae on Windows

Open Graph Description: I was able to compile and run the simple_dae example on Lilnux, but when I try on my Windows machine with MSVS I get the following compiler error: C2064 "term does not evaluate to a function taking...

X Description: I was able to compile and run the simple_dae example on Lilnux, but when I try on my Windows machine with MSVS I get the following compiler error: C2064 "term does not evaluate to a function t...

Opengraph URL: https://github.com/dae-cpp/dae-cpp/discussions/57

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"C2064 Error when building simple_dae on Windows","text":"

I was able to compile and run the simple_dae example on Lilnux, but when I try on my Windows machine with MSVS I get the following compiler error: C2064 \"term does not evaluate to a function taking 2 arguments\". The error is in line 500 of solver.hpp, related to the Jacobian passed to the solver. I'm relatively new to c++so I may be missing something obvious. Thank you for your help.

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

I couldn't reproduce this error (tried with Visual Studio 2022), it compiled just fine.

\n

The error message you posted is a bit strange. So the compiler expected a function that takes 2 arguments for some reason, but we call it providing 3 (line 500):

\n
jac(J, xk, state.t);
\n

Here jac is the Jacobian class functor, which is defined in the example source file (simple_dae.cpp), lines 101-107:

\n
void operator()(sparse_matrix &J, const state_vector &x, const double t)\n{\n    ...\n}
\n

So it does have 3 parameters.

\n

Just a few questions so I could reproduce the issue:

\n\n

Thanks!

","upvoteCount":1,"url":"https://github.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:b20899d8-9752-0710-b723-665ae6cdeafe
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idE912:ADAB8:1BBD0EA:24CE785:698D8079
html-safe-nonceca7ab69d761c8944d9939172c08acb8409b394d036d098cecf94d1dc927fdee3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTEyOkFEQUI4OjFCQkQwRUE6MjRDRTc4NTo2OThEODA3OSIsInZpc2l0b3JfaWQiOiI1OTk0OTEwOTg4NTk4OTY5NTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac85adf33f61e287be86db4db63f7092ddd97a7c0a1aa42ce41ca0c31cb144e06e
hovercard-subject-tagdiscussion:8584431
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/dae-cpp/dae-cpp/57/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/f5ccc33245506e531df3b06065c3ba57ac801f307706f20612295cf34152f87a/dae-cpp/dae-cpp/discussions/57
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f5ccc33245506e531df3b06065c3ba57ac801f307706f20612295cf34152f87a/dae-cpp/dae-cpp/discussions/57
og:image:altI was able to compile and run the simple_dae example on Lilnux, but when I try on my Windows machine with MSVS I get the following compiler error: C2064 "term does not evaluate to a function taking...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a
turbo-cache-controlno-preview
go-importgithub.com/dae-cpp/dae-cpp git https://github.com/dae-cpp/dae-cpp.git
octolytics-dimension-user_id166443251
octolytics-dimension-user_logindae-cpp
octolytics-dimension-repository_id182800779
octolytics-dimension-repository_nwodae-cpp/dae-cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id182800779
octolytics-dimension-repository_network_root_nwodae-cpp/dae-cpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release715890fa442134f528fb422ab338c0ad55c7a025
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdae-cpp%2Fdae-cpp%2Fdiscussions%2F57
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdae-cpp%2Fdae-cpp%2Fdiscussions%2F57
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=dae-cpp%2Fdae-cpp
Reloadhttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
Reloadhttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
Reloadhttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
dae-cpp https://patch-diff.githubusercontent.com/dae-cpp
dae-cpphttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdae-cpp%2Fdae-cpp
Fork 9 https://patch-diff.githubusercontent.com/login?return_to=%2Fdae-cpp%2Fdae-cpp
Star 55 https://patch-diff.githubusercontent.com/login?return_to=%2Fdae-cpp%2Fdae-cpp
Code https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp
Issues 11 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/issues
Pull requests 1 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/pulls
Discussions https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions
Actions https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/actions
Projects 0 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/projects
Security 0 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/security
Insights https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/pulse
Code https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp
Issues https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/issues
Pull requests https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/pulls
Discussions https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions
Actions https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/actions
Projects https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/projects
Security https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/security
Insights https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/pulse
Answered https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369
ikorotkinhttps://patch-diff.githubusercontent.com/ikorotkin
plinden4 https://patch-diff.githubusercontent.com/plinden4
Q&Ahttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/categories/q-a
C2064 Error when building simple_dae on Windows https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#top
plinden4 https://patch-diff.githubusercontent.com/plinden4
Answered https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369
ikorotkinhttps://patch-diff.githubusercontent.com/ikorotkin
Return to tophttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#top
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
plinden4 https://patch-diff.githubusercontent.com/plinden4
Jul 15, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussion-8584431
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
ikorotkin https://patch-diff.githubusercontent.com/ikorotkin
Jul 15, 2025 https://github.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369
View full answer https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369
Oldest https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57?sort=old
Newest https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57?sort=new
Top https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
ikorotkin https://patch-diff.githubusercontent.com/ikorotkin
Jul 15, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13767369
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/plinden4
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
plinden4https://patch-diff.githubusercontent.com/plinden4
Jul 16, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13771581
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
plinden4https://patch-diff.githubusercontent.com/plinden4
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
ikorotkin https://patch-diff.githubusercontent.com/ikorotkin
Jul 16, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13774779
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/plinden4
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
plinden4https://patch-diff.githubusercontent.com/plinden4
Jul 17, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13784633
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/ikorotkin
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
ikorotkinhttps://patch-diff.githubusercontent.com/ikorotkin
Jul 17, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13790129
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/plinden4
Please reload this pagehttps://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
plinden4https://patch-diff.githubusercontent.com/plinden4
Jul 18, 2025 https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57#discussioncomment-13800565
Give feedback.https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdae-cpp%2Fdae-cpp%2Fdiscussions%2F57
🙏 Q&A https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/categories/q-a
https://patch-diff.githubusercontent.com/plinden4
https://patch-diff.githubusercontent.com/ikorotkin
https://patch-diff.githubusercontent.com/dae-cpp/dae-cpp/discussions/57
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.