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

stdlib issue when build in linux #109

Open
DxTa opened this issue Feb 21, 2024 · 1 comment
Open

stdlib issue when build in linux #109

DxTa opened this issue Feb 21, 2024 · 1 comment

Comments

@DxTa
Copy link

DxTa commented Feb 21, 2024

Hi,

I tried to build the example in linux (Ubuntu 22.04 - amd64). Currently, I get the following issue.
I did updated few lines of code here. This solved the issue.

Anyway, I want to double check if this is expected?

Br,

/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:83:36: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:97:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:98:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:110:36: error: use of undeclared identifier 'realloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:140:39: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:221:40: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:231:40: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:241:40: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:251:38: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:261:39: error: use of undeclared identifier 'malloc'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:302:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:308:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:314:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:320:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:326:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:332:5: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:355:3: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:885:7: error: use of undeclared identifier 'free'
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/common/webview_value.cc:905:7: error: use of undeclared identifier 'free'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/home/dxta/dev/kiosk/fl_app/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/webview_cef_plugin.cc:273:11: error: variable 'res' set but not used [-Werror,-Wunused-but-set-variable]
@SinyimZhi
Copy link
Collaborator

@DxTa I guess it is caused by different C++ compilers.The reference to 'stdlib.h' may be necessary for some 'strict' compilers.
The function 'system' is weird that some compilers need a variable to handle the return value, i will check if there is anything wrong.

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

2 participants