Category Archives: Error

C++ Project Error: C Undefined symbols for architecture x86_64: “char_width(char)”

The following error occurred, C++ introduced C library error:

[ 41%] Built target glfw
[ 45%] Linking CXX executable craft
Undefined symbols for architecture x86_64:
"char_width(char)", referenced from:
_gen_sign_buffer(float, float, float, float, int, char const) in main.cpp.o
"cnd_signal(_opaque_pthread_cond_t)", referenced from:
ensure_chunks_worker(Player, Worker) in main.cpp.o
"db_disable()", referenced from:
_main in main.cpp.o
"db_get_key(int, int)", referenced from:
request_chunk(int, int) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
check_workers() in main.cpp.o
"db_set_key(int, int, int)", referenced from:
parse_buffer(char) in main.cpp.o
"del_buffer(unsigned int)", referenced from:
update_player(Player, float, float, float, float, float, int) in main.cpp.o
interpolate_player(Player) in main.cpp.o
delete_player(int) in main.cpp.o
delete_all_players() in main.cpp.o
gen_sign_buffer(Chunk) in main.cpp.o
generate_chunk(Chunk, WorkerItem) in main.cpp.o
gen_chunk_buffer(Chunk) in main.cpp.o
...
"gen_buffer(int, float)", referenced from:
gen_crosshair_buffer() in main.cpp.o
gen_wireframe_buffer(float, float, float, float) in main.cpp.o
gen_sky_buffer() in main.cpp.o
render_wireframe(Attrib, Player) in main.cpp.o
render_crosshairs(Attrib) in main.cpp.o
_main in main.cpp.o
"make_plant(float, float, float, float, float, float, float, int, float)", referenced from:
gen_plant_buffer(float, float, float, float, int) in main.cpp.o
compute_chunk(WorkerItem) in main.cpp.o
render_item(Attrib) in main.cpp.o
"mtx_unlock(_opaque_pthread_mutex_t)", referenced from:
check_workers() in main.cpp.o
ensure_chunks(Player) in main.cpp.o
worker_run(void) in main.cpp.o
"update_fps(FPS)", referenced from:
_main in main.cpp.o
"client_recv()", referenced from:
_main in main.cpp.o
"client_sign(int, int, int, int, char const)", referenced from:
set_sign(int, int, int, int, char const) in main.cpp.o
on_key(GLFWwindow, int, int, int, int) in main.cpp.o
"client_stop()", referenced from:
_main in main.cpp.o
"client_talk(char const)", referenced from:
parse_command(char const, int) in main.cpp.o
on_key(GLFWwindow, int, int, int, int) in main.cpp.o
"db_auth_set(char, char)", referenced from:
parse_command(char const, int) in main.cpp.o
"is_obstacle(int)", referenced from:
highest_block(float, float) in main.cpp.o
hit_test_face(Player, int, int, int, int) in main.cpp.o
collide(int, float, float, float) in main.cpp.o
render_wireframe(Attrib, Player) in main.cpp.o
on_right_click() in main.cpp.o
"make_player(float, float, float, float, float, float)", referenced from:
gen_player_buffer(float, float, float, float, float) in main.cpp.o
update_player(Player, float, float, float, float, float, int) in main.cpp.o
interpolate_player(Player) in main.cpp.o
_main in main.cpp.o
"make_sphere(float, float, int)", referenced from:
gen_sky_buffer() in main.cpp.o
_main in main.cpp.o
"thrd_create(_opaque_pthread_t**, int ()(void), void)", referenced from:
_main in main.cpp.o
"client_block(int, int, int, int)", referenced from:
set_block(int, int, int, int) in main.cpp.o
"client_chunk(int, int, int)", referenced from:
request_chunk(int, int) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
check_workers() in main.cpp.o
"client_light(int, int, int, int)", referenced from:
toggle_light(int, int, int) in main.cpp.o
"client_login(char const, char const)", referenced from:
login() in main.cpp.o
"client_start()", referenced from:
_main in main.cpp.o
"create_world(int, int, void ()(int, int, int, int, void), void)", referenced from:
load_chunk(WorkerItem) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
worker_run(void) in main.cpp.o
"load_program(char const, char const)", referenced from:
_main in main.cpp.o
"malloc_faces(int, int)", referenced from:
gen_cube_buffer(float, float, float, float, int) in main.cpp.o
gen_plant_buffer(float, float, float, float, int) in main.cpp.o
gen_player_buffer(float, float, float, float, float) in main.cpp.o
gen_text_buffer(float, float, float, char) in main.cpp.o
update_player(Player, float, float, float, float, float, int) in main.cpp.o
interpolate_player(Player) in main.cpp.o
gen_sign_buffer(Chunk) in main.cpp.o
...
"string_width(char const)", referenced from:
_gen_sign_buffer(float, float, float, float, int, char const) in main.cpp.o
"client_enable()", referenced from:
_main in main.cpp.o
"db_load_signs(SignList, int, int)", referenced from:
init_chunk(Chunk, int, int) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
ensure_chunks_worker(Player, Worker) in main.cpp.o
"db_load_state(float, float, float, float, float)", referenced from:
_main in main.cpp.o
"db_save_state(float, float, float, float, float)", referenced from:
_main in main.cpp.o
"set_matrix_2d(float, int, int)", referenced from:
render_crosshairs(Attrib) in main.cpp.o
render_text(Attrib, int, float, float, float, char) in main.cpp.o
"set_matrix_3d(float, int, int, float, float, float, float, float, float, int, int)", referenced from:
ensure_chunks_worker(Player, Worker) in main.cpp.o
render_chunks(Attrib, Player) in main.cpp.o
render_signs(Attrib, Player) in main.cpp.o
render_sign(Attrib, Player) in main.cpp.o
render_players(Attrib, Player) in main.cpp.o
render_sky(Attrib, Player, unsigned int) in main.cpp.o
render_wireframe(Attrib, Player) in main.cpp.o
...
"sign_list_add(SignList, int, int, int, int, char const)", referenced from:
_set_sign(int, int, int, int, int, int, char const, int) in main.cpp.o
"client_connect(char, int)", referenced from:
_main in main.cpp.o
"client_disable()", referenced from:
_main in main.cpp.o
"client_version(int)", referenced from:
_main in main.cpp.o
"db_auth_select(char)", referenced from:
parse_command(char const, int) in main.cpp.o
"db_delete_sign(int, int, int, int)", referenced from:
unset_sign_face(int, int, int, int) in main.cpp.o
_set_sign(int, int, int, int, int, int, char const, int) in main.cpp.o
"db_insert_sign(int, int, int, int, int, int, char const)", referenced from:
_set_sign(int, int, int, int, int, int, char const, int) in main.cpp.o
"db_load_blocks(Map, int, int)", referenced from:
load_chunk(WorkerItem) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
worker_run(void) in main.cpp.o
"db_load_lights(Map, int, int)", referenced from:
load_chunk(WorkerItem) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
worker_run(void) in main.cpp.o
"frustum_planes(float () [4], int, float)", referenced from:
ensure_chunks_worker(Player, Worker) in main.cpp.o
render_chunks(Attrib, Player) in main.cpp.o
render_signs(Attrib, Player) in main.cpp.o
"is_transparent(int)", referenced from:
compute_chunk(WorkerItem) in main.cpp.o
"make_character(float, float, float, float, float, char)", referenced from:
gen_text_buffer(float, float, float, char) in main.cpp.o
render_text(Attrib, int, float, float, float, char) in main.cpp.o
"sign_list_free(SignList)", referenced from:
delete_chunks() in main.cpp.o
delete_all_chunks() in main.cpp.o
_main in main.cpp.o
"client_position(float, float, float, float, float)", referenced from:
_main in main.cpp.o
"db_delete_signs(int, int, int)", referenced from:
unset_sign(int, int, int) in main.cpp.o
_set_block(int, int, int, int, int, int, int) in main.cpp.o
"db_insert_block(int, int, int, int, int, int)", referenced from:
_set_block(int, int, int, int, int, int, int) in main.cpp.o
"db_insert_light(int, int, int, int, int, int)", referenced from:
toggle_light(int, int, int) in main.cpp.o
set_light(int, int, int, int, int, int) in main.cpp.o
_set_block(int, int, int, int, int, int, int) in main.cpp.o
parse_buffer(char) in main.cpp.o
"is_destructable(int)", referenced from:
builder_block(int, int, int, int) in main.cpp.o
on_light() in main.cpp.o
on_left_click() in main.cpp.o
on_mouse_button(GLFWwindow, int, int, int) in main.cpp.o
"set_matrix_item(float, int, int, int)", referenced from:
render_item(Attrib) in main.cpp.o
"sign_list_alloc(SignList, int)", referenced from:
init_chunk(Chunk, int, int) in main.cpp.o
create_chunk(Chunk, int, int) in main.cpp.o
ensure_chunks_worker(Player, Worker) in main.cpp.o
"load_png_texture(char const)", referenced from:
_main in main.cpp.o
"sign_list_remove(SignList, int, int, int, int)", referenced from:
unset_sign_face(int, int, int, int) in main.cpp.o
_set_sign(int, int, int, int, int, int, char const, int) in main.cpp.o
"make_character_3d(float, float, float, float, float, int, char)", referenced from:
_gen_sign_buffer(float, float, float, float, int, char const) in main.cpp.o
"db_auth_select_none()", referenced from:
parse_command(char const, int) in main.cpp.o
"db_delete_all_signs()", referenced from:
_main in main.cpp.o
"make_cube_wireframe(float, float, float, float, float)", referenced from:
gen_wireframe_buffer(float, float, float, float) in main.cpp.o
render_wireframe(Attrib, Player) in main.cpp.o
"db_auth_get_selected(char, int, char, int)", referenced from:
login() in main.cpp.o
"sign_list_remove_all(SignList, int, int, int)", referenced from:
unset_sign(int, int, int) in main.cpp.o
_set_block(int, int, int, int, int, int, int) in main.cpp.o
"wrap(char const, int, char, int)", referenced from:
_gen_sign_buffer(float, float, float, float, int, char const) in main.cpp.o
"db_init(char)", referenced from:
_main in main.cpp.o
"map_get(Map, int, int, int)", referenced from:
_hit_test(Map, float, int, f
Solution:
A more symptomatic but not permanent solution is to change the .c file in C dep to .cpp;

How to Solve @ResponseBody Error: 500 NoSuchMethodError

When learning @ResponseBody today, I reported 500:

Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: 
org.springframework.util.MimeTypeUtils.tokenize(Ljava/lang/String;)Ljava/util/List;

Solution:

Delete the spring context package.

The reason for this error may be that the spring context and spring MVC packages are imported at the same time, and the modules dependent on the two jar packages conflict.

[Solved] ESLint Error: Failed to load config “standard” to extend from

preface

In order to better standardize development, eslint

content

An error failed to load config "standard" to extend from is encountered. The solution is as follows:

npm i --save-dev eslint-plugin-promise
npm i --save-dev eslint-plugin-node
npm i --save-dev eslint-plugin-import
npm i --save-dev eslint-plugin-standard
npm i --save-dev eslint-config-standard

Access to XMLHttpRequest at ‘http://localhost:9990/’ from origin ‘http://IP:Port’ has been blocked by CORS policy…more-private address space `local`

Online error: Google browser encountered CORS error prompt: access to XMLHttpRequest at ‘ http://localhost:9990/ ‘ from origin ‘ http://xxx.xx ‘ has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.   An error occurred while upgrading the latest Google browser

Own error: open the electronic medical record access and PACS impact view in the patient holographic view, access the localhost: 9990 local program from a server program of the hospital, report a cross domain error, and prompt that the requesting client is not a security context, and the resource is located in a more private “local” address space, so local is not accessible

 

 

Reason: because Google browser has been upgraded, it is due to the increased access restrictions of Google browser. It should have been updated a few months ago. The solution is to use HTTPS

solve:

Step 1: open Google browser chrome://flags/#block -Secure private network requests
Step 2: find block secure private network requests. Set it to disabled
Step 3: close Google browser and reopen the web page to solve the problem.

Or access HTTPS instead of HTTP

 

Relauch may pop up after setting   Click     Reload Google browser

Go to the program again and click the electronic medical record access and PACS Image View in the patient holographic view to pop up

  Reference link: https://bbs.csdn.net/topics/601183131

Original reference link: https://stackoverflow.com/questions/66534759/chrome-cors-error-on-request-to-localhost-dev-server-from-remote-site     At the back

 

session_start(): Cannot send session cookie – headers already sent

Warning: session_ start() [function.session-start]: Cannot send session cookie – headers already sent by

 

 

When configuring PHP websites, warning: session often appears at the top of the page_ Start() [function. Session start]: cannot send session cache limiter, nor does it affect page opening.

 

Warning: session_ start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at D:\orther object\phptest\session.php:1) in D:\orther object\phptest\session.php on line 2

1. If you use Dreamweaver and UTF-8 coding, right click on a page = = & gt; Page properties = = & gt; Title/code, you will see a check box “including Unicode signature (BOM) (s)”, and you can cancel it. This is because the UTF-8 encoding file contains BOM, while PHP4 and PHP5 do not support BOM.

2. Modify session.auto in php.ini_ Start = 0 is session.auto_ start = 1

3. There is another way to directly give the session_ Start() plus @ session_ Start () will be fine.

4. This information indicates that there is already content output when the session is enabled. You can add ob at the top_ start()。

    OB is the abbreviation of output buffering. If ob is used correctly, it can accelerate the speed of web pages, but blindly adding ob function will only increase the additional burden on the CPU. The basic function of ob
     1) . prevent using setcookie, header or session after the browser has output_ Error caused by start function.

     2) . capture the output of some unavailable functions. For example, phpinfo will output a lot of HTML, but we can’t use a variable, such as $info = phpinfo(); To capture, and then ob it works.

     3) . process the output content, such as gzip compression, simple and complex conversion, such as string replacement.

     4) Generating a static file is actually capturing the output of the whole page and saving it as a file. It is often used in generating HTML or whole page cache.

five    Add the code of shielding warning error directly to the header of PHP file:
     PHP code

    & lt;?php   

       // If there is a session_ Star() in session_ After star()   

        error_ reporting(E_ERROR);   

        ini_ set(“display_errors”,”Off”);   

       // Your PHP code   

    ?& gt;  

 

 

How to Solve Error: undefined reference to ‘func’

undefined reference to ‘func’

Follow this article: https://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix

Second, compile using the terminal instead of using an editor like vscode. For example:

g++ a.h a.cpp b.h b.cpp

vscode there are many problems with link compilation of multiple files.

Python — the copied virtual environment PIP command failed to run. Fatal error in launcher: unable to create process using

Original text: https://blog.csdn.net/weixin_ 39278265/article/details/82938270

You need to modify the directory referenced in the pip.exe file in the scripts directory of the virtual environment.

Referring to the original text, I used Notepad + + to open pip.exe, and then searched according to the python path information prompted,

After finding it, replace it with the path of python.exe in the current virtual environment and save it.