VS中的回退位置(Fallback Location)

本文介绍了解决Visual C++编译过程中出现的“Because a 'FallbackLocation' was not specified...”警告的方法。通过配置C++高级选项中的“Always use Fallback Location”和“Do Not Warn if Fallback Location”为真,可以将.sdf、.ipch等文件存储在其他目录,避免占用项目目录空间。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:

“Because a 'Fallback Location' was not specified in the C++ Advanced Options, Visual C++ is attempting to use your temporary directory.”


解决方案:

The 'Fallback Location' is configurable under C++ Advanced Options.

--->"Always use Fallback Location"和“Do Not Warn if Fallback Location”设置成“True.

每个项目生成的.sdf、.ipch等文件用于源代码的智能分析但文件太大,需修改其设置,使之存储在其他目录下,不出现在工程目录中。

#user nobody; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; #gzip on; upstream localconfig { server 169.254.88.104:9001; server 169.254.88.104:9002; } # ----------------------------------------------------------------兰州项目 server { listen 9001; server_name 169.254.89.189; location / { root html/lz1; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ^~ /api/ { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://169.254.110.163:9010; # 反向代理 proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; } } server { listen 9002; server_name 169.254.89.189; location / { root html/lz2; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location ^~ /api/ { rewrite ^/api/(.*)$ /$1 break; proxy_pass http://169.254.110.163:9010; # 反向代理 proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; } } server { listen 9003; server_name 169.254.89.189; error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } location @fallback { proxy_pass http://localconfig; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-NginX-Proxy true; } location / { index index.html index.htm; try_files $uri $uri/ /index.html @fallback; } } } nginx配置如上:但是localconfig配置的是前端地址,非服务器地址。169.254.88.104:9001和169.254.88.104:9002都是前端项目地址具体地址。通过169.254.88.104:9003访问我需要访问到69.254.88.104:9001或者是169.254.88.104:9002的前端地址?如何处理?
03-11
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值