getting error on executing a program LNK1104 - visual-c++

i am using GLUT 3.7.6 with VC++6.0 n on compiling a program i get following error
--------------------Configuration: abc2 - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "abc2.exe"
Error executing link.exe.
abc2.exe - 1 error(s), 0 warning(s)
i have included all the header files ...linked all the lib files bt still the result is same...!!...please guide me through this problem...THNX in advance...!!

This usually happens when the output file already exists and something has a lock on it. Check to see if abc2.exe is alright running, or of some program has a file lock on it.

You can check whether abc.exe is running using Process Explorer from sysinternals. If that's the case the link step will fail.
Also check the target file is not write-protected.
All the Microsoft tool error codes are documented online - see here for more reasons why you might see LNK1104.

Related

Build message - Unknown compiler version, for dealii-4.8.1 library on visual studios

My build output gives many error messages of:
"Unknown compiler version - please run the configure tests and report the results"
...when attempting to build INSTALL for the dealii-8.4.1 library (open source, finite element library - graphics library) on Visual studios 14.0 (v 2015) c++.
A portion of the build is shown below.
Can anyone advise on what this means? and how to: "run the configure tests and report the results?" I Configured dealii-8.4.1 using cmake to start with.
Using deal.II on native Windows (dealii webpage and instructions)
https://github.com/dealii/dealii/wiki/Windows
PORTION OF BUILD OUTPUT on Visual Studios
44> vector_tools_point_value.cc
44> Unknown compiler version - please run the configure tests and report the results
44>C:\dealii-8.4.1\source\numerics\vector_tools_point_value.cc(22): fatal error C1083: Cannot open include file: 'vector_tools_point_value.inst': No such file or directory
44> vector_tools_point_gradient.cc
44> Unknown compiler version - please run the configure tests and report the results
44>C:\dealii-8.4.1\source\numerics\vector_tools_point_gradient.cc(22): fatal error C1083: Cannot open include file: 'vector_tools_point_gradient.inst': No such file or directory
44> vector_tools_project.cc
44> Unknown compiler version - please run the configure tests and report the results
44>C:\dealii-8.4.1\source\numerics\vector_tools_project.cc(22): fatal error C1083: Cannot open include file: 'vector_tools_project.inst': No such file or directory
44> vector_tools_rhs.cc
44> Unknown compiler version - please run the configure tests and report the results
44>C:\dealii-8.4.1\source\numerics\vector_tools_rhs.cc(83): fatal error C1083: Cannot open include file: 'vector_tools_rhs.inst': No such file or directory
The issue may be due to deal.II on native Windows, as for the windows version it states:
"Warning: please be aware that the following is experimental and you will likely encounter bugs in compilers and deal.II itself. Only continue if you are willing to experiment."
https://github.com/dealii/dealii/wiki/Windows
And: "deal.II is mostly developed on Linux using the GCC compiler."
http://www.dealii.org/8.4.1/readme.html
So it may be better to install Linux (Ubuntu) to see if that solves it.

LINK : fatal error LNK1181: cannot open input file 'lib.obj'

I am compiling a server on Microsoft Visual Studio 2015, generating the solution using CMake. The project is correctly set up to generate a 64-bit release, and the following variables work:
MYSQL_EXECUTABLE = C:/MariaDB/bin
MYSQL_INCLUDEDIR = C:/MariaDB/include/mysql
MYSQL_LIBRARY = C:/MariaDB/lib
Everything builds correctly except at the end when I get the following:
17>LINK : fatal error LNK1181: cannot open input file 'C:\MariaDB\lib.obj'
As suggested here, I have appended "C:\MariaDB\lib" to "Additional Library Directories". However, because it's looking for "lib.obj" rather than anything with a reasonable name, I've no idea how to fix it. Any ideas?

Error compiling Fortran code with eclipse... it is OK when using Gfortran via Linux terminal

I am trying to compile a .f Fortran code with Eclipse. I have tried both of the below methods from the Eclipse help site:
Starting a Project with an Auto-Generated Makefile
Starting a Project with a Hand-Written Makefile
However, Eclipse gives multiple different errors... Here are some of the errors:
DIMENSION DDDJ(0:IG,-1:JG)
1
Error: Non-numeric character in statement label at (1)
../Main1.f:16.5:
DIMENSION DDDJ(0:IG,-1:JG)
1
Error: Unclassifiable statement at (1)
../Main1.f:19.5:
DIMENSION MSN(1:NPP) ! S(x,t)
1
Error: Non-numeric character in statement label at (1)
Fatal Error: Error count reached limit of 25.
make: *** [Main1.o] Error 1
14:51:55 Build Finished (took 1s.244ms)
I have compiled the code in the terminal using Gfortran simply and i have obtained the executable file an obtained the results. But Eclipse did not work for me at all.
I want to debug my code. it is 1236 raws. Can someone help me with Eclipse or any other suggestion?
It is related with the form of Fortran file. I was copying the code into a new Fortran source file. I decided to import the file that I have into the project.

Android ndk exceptions error during run time

I have ported some native code to android and in the run time I am getting the error
A/libc(7857): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
But I am not able to find out which part of my code is throwing this error
How to have these error deatils in android ndk
ndk-stack from the Android-NDK is the tool to run on the logcat output, this may give a complete stack trace if you are lucky
ndk-stack -sym <path> [-dump <path>]
-sym Contains full path to the root directory for symbols.
-dump Contains full path to the file containing the crash dump.
This is an optional parameter. If ommited, ndk-stack will
read input data from stdin
See docs/NDK-STACK.html in your NDK installation tree for more details.
so you probably want to run
logcat | ndk-stack -sym <the symbol file from your project>
As mentioned above, use ndk-stack. A good guide can be found here.

bizarre VC10 linker error

hey all, I just installed VC 2010 Premium Beta2 on my system and I migrated my old vc9 projects to it... everything seemed ok at first...
what's strange is that no matter what I compile I get the following error message:
1> Microsoft (R) Incremental Linker Version 6.00.8447
1> Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
1>
1>  ■/
1>LINK : warning LNK4044: unrecognized option "ERRORREPORT:PROMPT"; ignored
1>LINK : fatal error LNK1181: cannot open input file " ■/.obj"
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
the warning about errorreport is a little annoying but non-fatal... annoying because no matter which errorreport setting I choose, the warning stays... however the LNK1181 is fatal and even more frustrating because it seems to have no detectable cause.
my input list contains no .obj files, only various .lib files... furthermore, there is that strange block-like special ascii character in the name which I've certainly never typed anywhere. initially when this showed up I thought it must be some artifact of the vc9 to vc10 migration... and after spending 2 hours looking all over for the cause, it occurred to me to test whether or not it occurs with brand new projects... well sure enough it does!!
I create a BRAND NEW project... involving no migration, nada... just a brand new win32 project with the default afx files and so forth... I don't change any default setting and it gets this exact same linker error!
I hope somebody here can shed some light because this is very mysterious... at the moment the only other diagnostic method I can think of is to try to create a new workspace and add a new project to that and see if that works... ok just tried that and no dice... problem still persists.
anybody have some advice or seen this before?
You have an old copy of your pre-processor or linker (cl.exe, link.exe) in your system path.

Resources