I've been working on building a .vcproj file for tex2lyx and am down to
two unresolved externals before the thing works. The problem has to do
with the handle_tabular function in table.C, and the
parse_text_in_insert function in text.C. I was wondering if anyone had
any insight into this.

Note that if I copy table.C's contents into the bottom of text.C and
exclude table.C from the build, tex2lyx builds without the unresolved
externals and I get a working executable. It's curious that it fails
with separate files. I've included the linker error text at the bottom
of the message. I'm also including the .vcproj file and the modified
lyx.sln file that builds tex2lyx after lyx is built, in case anyone is
interested.

By the way, the .vcproj copies the contents of the src/tex2lyx directory
and the requisite files from the src directory into a temporary
src/tex2lyx/win32_tmp directory in order to avoid header confusion. It
cleans up and removes this directory after a successful build. But if
this "enhancement" to lyx.sln is accepted, a line might need to be added
to the src/tex2lyx/.cvsignore file.

Thanks
Rob

Linker error text:

Linking...

text.obj : error LNK2019: unresolved external symbol "void __cdecl
handle_tabular(class Parser &,class std::basic_ostream<char,struct
std::char_traits<char> > &,bool,struct Context &)"
(?handle_tabular@@YAXAAVParser@@[EMAIL PROTECTED]@[EMAIL PROTECTED]
@@@std@@_NAAUContext@@@Z) referenced in function "void __cdecl
`anonymous namespace'::parse_environment(class Parser &,class
std::basic_ostream<char,struct std::char_traits<char> > &,bool,struct
Context &)"
([EMAIL PROTECTED]@@YAXAAVParser@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@@std@@_NAAUContext@@@Z)

table.obj : error LNK2019: unresolved external symbol "void __cdecl
parse_text_in_inset(class Parser &,class std::basic_ostream<char,struct
std::char_traits<char> > &,unsigned int,bool,class Context &)"
(?parse_text_in_inset@@YAXAAVParser@@[EMAIL PROTECTED]@
[EMAIL PROTECTED]@@@std@@I_NAAVContext@@@Z) referenced in function "void __cdecl
handle_tabular(class Parser &,class std::basic_ostream<char,struct
std::char_traits<char> > &,bool,class Context &)"
(?handle_tabular@@YAXAAVParser@@[EMAIL PROTECTED]@[EMAIL PROTECTED]
@@@std@@_NAAVContext@@@Z)

Debug\tex2lyx/tex2lyx.exe : fatal error LNK1120: 2 unresolved externals

Attachment: lyx.sln
Description: lyx.sln

Attachment: tex2lyx.vcproj.gz
Description: tex2lyx.vcproj.gz

Reply via email to