Title: | Microsoft Visual C/C++ |
Moderator: | PLUGH::needle |
Created: | Tue Mar 16 1993 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1121 |
Total number of notes: | 4385 |
I am experiencing a linker error when trying to build a device driver under Windows NT V4.0. The error is LINK : error : Internal error during Pass1 This happens when building using the studio environment as well as the build command for the DDK. It seems to go away in the user level code if I check the Link Incrementally flag, I do not see the error. However I don't have that option with the driver. I have attached a simple program that recreates this error. Any ideas??? Thanks inadvance From the build -cef command: obj\alpha\watch.obj() : error : Internal error during Pass1 From the developer studio: --------------------Configuration: isempty - Win32 (ALPHA) Release-------------------- Linking... LINK : error : Internal error during Pass1 link.exe terminated at user request. Tool execution canceled by user. isempty.exe - 1 error(s), 0 warning(s) when trying to compile (NT4.0 Checked, standard settings): #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> int main(int argc,char *argv[]){ struct _stat buf; int result; if (argc!=2) { puts("Expected a single filename, returns errorlevel 0\nif file doesn't exist or is empty."); return 0; } /* Get data associated with "stat.c": */ result = _stat( argv[1], &buf ); if( result != 0 ) { perror( "Problem getting information" ); return 0; } return buf.st_size ? 1 : 0; } [Posted by WWW Notes gateway]
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1097.1 | report it in decwet::visual | DECWET::PETERSON | Tue Mar 25 1997 12:14 | 8 | |
I had no problem linking the program. you might want to report this problem in the decwet::visual notes conference, which is an internal bug reporting mechanism for VC++ for Alpha. Include the version of Visual C++, and the complete list of linker switches. check also for corrupted libraries or object files. | |||||
1097.2 | NETRIX::"[email protected]" | Doug Ferrin | Wed Mar 26 1997 10:02 | 5 | |
The problem appears to have gone away when I reinstalled the ddk, sdk and visual c. Go figure. It works now. doug [Posted by WWW Notes gateway] |