Unable to create .dll from version 0.3 source in Visual C++ 2008 Express Edition

88 views
Skip to first unread message

J. Fink

unread,
Mar 11, 2011, 11:26:26 AM3/11/11
to pdo...@googlegroups.com
As Visual Studio 6 in no longer available from Microsoft, I've attempted to create a .dll file from version 0.3 source. When I open the .dsp file, I get a message that the file must be converted which research tells me is expected. I select "Convert and open this project? Yes to All". I then receive an error dialog indicating that the project file is corrupt.

Has anyone else had these problems?

Does anyone have another suggestion?

Thanks.
J. Fink
3-11-2011_10-28-03 AM.pdf

Timothy Penner

unread,
Mar 11, 2011, 10:57:18 PM3/11/11
to pdo...@googlegroups.com

Hi Jennifer,

 

I think the reason why MS Visual Studio (v6 and v9/2008) is complaining that the project file is corrupt may be due to the line endings of the dsp file; it looks like the dsp file uses Unix line endings.

 

You can view this information by opening the DSP file in an advanced Text Editor such as Notepad++ when you choose to ‘see all characters’; in this mode you can see the file uses Unix line endings (LF or Line Feed) and not Windows line endings (CRLF or Carriage Return Line Feed).  It doesn’t look like MS Visual Studio likes those.  This can be adjusted using the EOL Conversion option from the Edit menu of Notepad++ or by replacing \n with \r\n at the end of each line of the dsp file.

 

I hope this helps,

 

-Tim

 

 

Timothy Penner
Technical Services Team Member
Email:tpe...@4d.com
Web:www.4D.com
4D Inc
3031 Tisch Way Suite 900
San Jose, CA 95128  - United States
Telephone:+1-408-557-4600
Fax:+1-408-261-9879


--
****
This message was sent to members of the PDO_4D Google Group: http://groups.google.com/group/pdo_4d
To post to this group, send email to: pdo...@googlegroups.com
To unsubscribe from this group, send email to: pdo_4d+un...@googlegroups.com

 

J. Fink

unread,
Mar 15, 2011, 4:32:59 PM3/15/11
to pdo...@googlegroups.com
Thanks Tim. That worked.

I'm now getting the error messages "pdo_4d.obj : error LNK2019: unresolved external symbol _pdo_4d_driver referenced in function _zm_startup_pdo_4d and ..\..\Release_TS\php_pdo_4d.dll : fatal error LNK1120: 1 unresolved externals
". I cannot find where "_pdo_4d_driver" or "_zm_startup_pdo_4d" is referenced in any files. From research, it appears that something may not be linked correctly, but I don't know what or how to correct.

Any and all help is greatly appreciated.

J. Fink

Alexandre Morgaut

unread,
Mar 17, 2011, 7:00:39 AM3/17/11
to PDO_4D
It looks like Jason who reported a PDO_4D bug on PECL have been able
to to compile a VC6 version:

http://pecl.php.net/bugs/bug.php?id=17047

I'm inviting him on this group hoping he will be able to help

Alexandre.
Reply all
Reply to author
Forward
0 new messages