关于Code::Blocks建立工程时出现“file not recognized: File format not recognized”“it seems that this project...

Windows下搭建Object-C开发环境 转载请注明出处,原文网址:http://blog.csdn.net/m_changgong/article/details/7759419 作者:张燕广 1、 开发环境搭建请参考       http://wenku.baidu.com/view/9ffed817f18583d0496459ca.html ps: 1)如果没有积分无法下载上面的文档,又不想设置的时候自己敲写,先贴出我的 阅读详情
    今天,用codeblocks建立完一个工程后,编译时出现了"file not recognized: File format not recognized"的信息

如下图:

点击运行,出现:

It seems that this project has not been built yet.

如下图:

网上搜的解决办法都不行,比如什么在.h文件(头文件)右键选择Option->Compile file、Link file前面勾去掉,重新编译可运行。我试了一下,出现下面的错误:
Linking stage skipped (build target has no object files to link)

Nothing to be done (all items are up-to-date).

后来,我发现了可能错误的原因:我们点击编译会出现一个预编译的头文件(如student.h.gch),但在我的编译器中并不

支持或者说是兼容这种预编译文件,所以链接失败了。

解决方案有两种(前提确定不是因为你的编译器路径设置的问题):

方案1

(1)在你所建的工程,右键选择"Propties"。


(2)选择"Build targets"的卡项,将"Build target files"(目标文件)(也就是你所建立的源文件和头文件)的复选框全部勾上。点击OK.


(3)接下来点击编译运行,完全OK了。


注意:头文件的Option->Compile file、Link file不用勾选.


方案2:

备份代码,重新建立工程。

(1)注意下面的步骤(全部勾选上)


(2)创建.cpp/.c源代码文件时,将他们勾选上,如下图

(3)建立头文件也一样。


全部弄好后,点击编译运行,完全OK了。
libopencv_core.so: file not recognized: File format not recognized /dependencies/OpenCV348/lib/libopencv_core.so: file not recognized: File format not recognized 解决方法: libopencv_core.so本来是个软链接,指向libopencv_core.so.3.4.8 解决方法: 1.把软链接补全,以前可以,这次没测 2.把libopencv_core.so.3.4.8 改名为libopencv_core.so ... 阅读详情

相关推荐

C++:错误:File format not recognized

源文件后缀要是合法的规则。cpp/cxx/hpp/ g++ a.sh .: file not recognized: File format not recognized collect2: error: ld returned 1 exit status

mzhan017的博客 5952

file not recognized: File format not recognized

file not recognized: File format not recognized

m0_62934335的博客 1万+

C#实战:5分钟搞定Modbus RTU通讯(基于NModbus4库)

本文详细介绍了如何使用C#和NModbus4库快速实现Modbus RTU通讯,包括环境配置、核心功能实现、性能优化及常见问题排查。通过代码示例和实用技巧,帮助开发者高效完成工业自动化设备的数据采集与控制任务。

weixin_30689307的博客 471

编译报错file format not recognized; treating as linker script

linux环境下,C++编译出现问题,报错 XXX:file format not recognized; treating as linker script XXX:syntax error 原因是,识别不了文件格式,只能将文件当作一个链接识别。出现该错误原因 很多,如果是cpp文件或者o文件,可以仔细检查一下文件名是否正确。若是文件名无误,可以使用file命令进一步排错。 以上错误发生后,查看了一下文件格式,发现so文件格式竟然变成了ASCII text; 而实际so文件格式应该为 实际上,以上错误一般

XBS7231671的博客 3万+

Tessent MBIST SDC

主要是两个PROC,tessent_constrain_${design_name}_mentor_ijtag_non_modal和tessent_constrain_${design_name}_mentor_memory_bist_modal。其中,Memory/MBIST controller/MEM Interface可以从func_clk_1来(用func_clk_1和func_clk_2的高频时钟),如图中红色线。其中,SIB和BAP用ijtag_tck的clock,如图绿色线。

po_poo的博客 2002

Cadence导入tsmcN65GP PDK的完整流程与常见问题解析

本文详细介绍了Cadence导入tsmcN65GP PDK的完整流程,包括文件解压、目录结构解析、安装脚本运行及Cadence集成配置。重点解析了常见问题如文件路径错误、权限问题和工艺库显示不全的解决方案,并提供了实战技巧与优化建议,帮助用户高效完成PDK安装与配置。

weixin_29215391的博客 552

【问题记录】MINGW编译报错“file not recognized: file format not recognized”

后续编译报错“file not recognized: file format not recognized”可以从文件格式不匹配(32bit/64bit)方向思考.

专注音频,高效工作,快乐生活! 3309

如何选择StandardScaler、MinMaxScaler和RobustScaler做标准化的对比解释和示例代码

选择合适的标准化方法取决于数据的特点和需求。如果数据分布接近正态分布且无异常值,可以使用。如果需要将数据映射到特定范围内并保持相对关系,可以使用。如果数据中存在异常值或离群点,可以使用进行鲁棒标准化。在分类、聚类算法中,需要使用距离来度量相似性的时候、或者使用PCA技术进行降维的时候,StandardScaler表现更好(避免不同量纲对方差、协方差计算的影响);在不涉及距离度量、协方差、数据不符合正态分布、异常值较少的时候,可使用MinMaxScaler。

qq_36001281的博客 4950

“file not recognized:File format not recognized“linux交叉编译时报错问题解决方法

近日,使用nlopt库(一个求最优解的C++库)时遇到的一个问题,已解决,与大家分享一下,并顺便作为自己的笔记吧(linux小白的学习笔记)。 首先,是调试时,代码写好后,在桌面编译器编译是没有问题的(用的是qt),正常输出结果。由于此代码最终需要在arm上运行,需要用交叉编译器进行编译,但是编译器一换到交叉编译器就报以下错误: 对于此报错一开始在网上搜了下,基本上可以确定是库识别不了的问题,由于代码的编写风格是C11的,这个交叉编译器是C99的,一开始以为是这样的问题,ok,按C99的风格改回来之后发

qq_33214031的博客 1万+

CCF CSP历年题解(python)

菜鸡一枚,没参加过算法竞赛,单纯为了抵研究生考试复试才刷题,通过写博客记录下来,希望能和大家互相交流,代码质量不高,大家见谅。 因为考研等原因,题目不定期更新… 第一题 201312-1出现最多次数的数 ...

weixin_44690402的博客 5011

基于PCL的电力线点云提取与分割实现

本文基于PCL库实现电力线点云提取与分割,包含6个核心处理阶段:文件读取与结果文件夹创建、高程滤波分割候选点云、欧式聚类去噪、电力线分段提取、球形邻域搜索补全点云、最终分割与可视化保存。通过PCA计算点云线性特征(阈值0.91)筛选电力线点,采用欧式聚类(容忍度3.0)去除噪点,并针对不同规模聚类差异化设置球形搜索半径(4.0/6.0)补全点云。最终通过欧式聚类分割并可视化带颜色点云。算法对高程滤波阈值、聚类参数等具有敏感性,需根据点云特性调整优化。

weixin_45196569的博客 199

file not recognized :不可识别的文件格式

file not recognized :不可识别的文件格式 为了找出这个错误,花费4hour,真是心塞啊 Linux的makefile文件,再三提醒自己,大小写!!! 这已经是第二次,失误了 第一次"arm-linux-gnueabihf-gcc -Wall -nostdib -c -02 $(INCLUDE) -o $@ $< "的Wall当成wall,报错为,无法解析此命令。。。 ...

qq_20612759的博客 1万+

铁路场景雷达点云目标识别与追踪系统

本文介绍了一种基于毫米波雷达的铁路货运车站安全监控系统。该系统采用分布式架构,通过多个毫米波雷达节点采集点云数据,经过坐标转换、多雷达融合等处理后,利用机器学习算法实现列车、行人等目标的实时识别与追踪。系统包含数据采集层、处理层、目标识别层、追踪层、预警决策层和可视化层,能够克服传统视频监控受环境影响大的缺点,实现全天候可靠监测。文中详细展示了雷达数据解析和点云预处理的代码实现,包括坐标转换、数据格式解析和体素网格滤波等关键技术。该系统可有效预警铁路场景下的碰撞风险,提升货运车站的安全管理水平。

huanghm88的专栏 128

ubuntu makefile交叉编译报错:file not recognized: file format not recognized

解决方法:make clean一下 或者手动将之前编译生成的文件删除 参考文章:linux编译出现问题:file not recognized: File format not recognized

Dontla的博客 5757

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

解决编译报错:File format not recognized Makefile:99: *** missing separator. Stop.方法总结

通过排查这两个问题,能够成功解决编译和链接程序时的错误。

热情、奔放、快乐编程! 3782

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

linux交叉编译时报错:file not recognized: File format not recognized

重新配置后就能正确编译了。

weixin_61059817的博客 3431

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

QT调试的时候提示not in executable format:file format not recognized

刚开始学习Qt,在调试程序时提示not in executable format:file format not recognized 在查找资料后发现是因为编译器(Compiler)使用了32 位版本的 MSVC,调试器(Debugger)却使用了64 位的 MinGW 的 GDB,从而 GDB 不能调试 32 位程序而报错。 解决办法: 在 Qt 的 工具 - 选项 - 构建和运行 - Debuggers 选择 CDB(Debugging Tools for Windows), 不能自动检测到则手动添

ixiayiwannian的博客 7238

QT报错:file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status

问题:file not recognized: file format not recognized collect2.exe: error: ld returned 1 exit status。解决方法:排查是否安装npcap小软件,安装后问题即可解决。解决方法:取消勾选32-bit即可。

qq_57320111的博客 2779

file not recognized: File truncated编译错误总结

file not recognized: File truncated错误: 这种错误一般是编译数据被截断或则编译过程中发生异常退出系统导致数据丢失; 例如: sample.o: file not recognized: File truncated collect2: error: ld returned 1 exit status make[5]: *** [libsampl

Yannick 7万+

gdb调试产生code文件以及遇到的“file format not recognized”问题解决

有时候,服务器程序运行一段时间后会突然崩溃,这并不是我们希望看到的,需要解决这个问题。只要程序在崩溃的时候有 core 文件产生,就可以使用这个 core 文件来定位崩溃的原因。当然,Linux 系统默认是不开启程序崩溃产生 core 文件这一机制的,我们可以使用 ulimit -c 命令来查看系统是否开启了这一机制。发现 core file size 那一行默认是 0,表示关闭生成 core 文件。1)使用(unlimited 是 -c 选项值)直接修改成不限制大小。2)然后执行。

Ricardo2的博客 7235

codeblocks:it seems that this project has not been built

我参加过几次比赛,一般都提供编译器,但好不好用就很难说了,多半要自己调试,比如新建工程下的程序出现 it seems that this project has not been built. 我曾在这方面吃过大亏,很是恼火,在新建一个工程的时候一定要选择debug release ,我问题就出在这个方面,安装了带有mingw的安装驱动之后,新建工程会自动勾选。 我在网上还搜到下面的解决方...

chineseITIce的博客 5269

h.gch: file not recognized: file format not recognized

文章目录出错常景:错误提示:前情提示 出错常景: 使用gcc编译静态库和动态库 我想将一些.c .h 文件经过汇编、动态链接,生成一个可执行文件 错误提示: (在生成静态库时,我将.h.gch文件利用ar命令放入了静态库文件(.o)文件,并没有提示这类错误) (该错误发生在生成静态库之间,此时我将head.h单独列出来,其中放了一些#include命令) ‘head.h.gch: file not recognized: file format not recognized’ 前情提示 首先将一些分散开的

shaoyeStillYoung的博客 1849

linux交叉编译时报错 libfreetype.so: file not recognized: File format not recognized

root@ubuntu:/home/linuxsystemcode/04th_print_info# arm-none-linux-gnueabi-gcc -finput-charset=GBK -o example1 example1.c -lfreetype -lm /usr/local/arm/arm-2009q3/bin/../arm-none-linux-gnueabi/libc/l...

qq_37659294的博客 1万+

【经验贴】S32DS编译出现 Ld error: file not recognized: file format not recognized 错误的解决方法

S32DS编译出现 Ld error: file not recognized: file format not recognized 错误的解决方法。

qq_41798833的博客 1579
上一篇: HDU 1212 Big Number(大整数取模)
下一篇: 关于MyEclipse 2017文本编辑器设置html代码提示功能更换主题颜色
余 一
博客等级 码龄10年 96粉丝 146原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值