WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 7 posts ] 



 
Author Message
 Post Posted: Thu Jun 13, 2019 2:14 pm 
Offline
Level 1
Level 1

Joined: Thu Jun 13, 2019 1:52 pm
Posts: 5
dear advanced user/programers:
when I using wine to run vc++6,(CL.EXE) to compile a C source code copied from book, physics for game developer 1st ed, cannon.c
I got the following 2 errors:
mspdb60.dll (which is needed by L"Z ..... CL.EXE)

and the other (dll related too)

I searched google, some article suggest me to using winetricks to
--------------------------------------------------------------------------(I use ubuntu 19.04 too)-------
Re: err:module:import_dll Library MSVBVM60.DLL???

This is how I THINK I did it-

Command line.....

Installed winetricks (somehow)

$ winetricks

Then "Select the default wine prefix"

OK

Then "Install a Windows DLL or component"

------
here , it showed a lot, then I choose : vb6run (MS Visual Basic 6 runtime sp6)
msvcirt (Visual C++ 6 SP4 msvcirt library; part of vcrun6)
vcrun6
vcrun6sp6

Note: command wine /home/eric/.cache/winetricks/rcrun6/vc6redistsetup_deu.exe /
T:C:windows Temp_msvcirt /
c returned status 199.
Aborting

I clieck OK, then try to do compile again, same errors

please help
thx a lot in advance, eric


Top 
 Post Posted: Fri Jun 14, 2019 4:19 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2637
Location: Cambridge
@ air0forceb914

Please use the forum Code tags to delimit blocks of code/terminal commands:
...

Please also don't post your "edited highlights" of what you're doing.
The less information you supply, the harder it is to help you. :roll:

Your post is quite garbled, but I think I can just about follow what you mean! :shock:

If the source code is short - you're attempting to compile - I would expect a full dump of this (or least a core sample - that replicates your build issue).
I'd also expect you post the full / unedited compilation command you're using (including what dll's you are linking against).

Thanks
Bob


Top 
 Post Posted: Sun Jun 16, 2019 3:38 pm 
Offline
Level 1
Level 1

Joined: Thu Jun 13, 2019 1:52 pm
Posts: 5
thx your reply; although I can get simple hello world compile and run at wine (now I upgrade to 4.10; arch 32 bit); a little
complicated program, that still make many compile mistakes(that c source code of book, download site also come with its .exe executable code, which can run/work at wine (32 bits both 4.0 and 4.10)) of my ubuntu19.04(64). Here my new compile errors:
----------
wine CL.EXE /I "C:\\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE" cannon.c /link
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

cannon.c
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(28) : error C2054: expected '(' to follow 'DECLSPEC_HIDDEN'
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(28) : error C2085: 'AddDllDirectory' : not in formal parameter list
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(29) : error C2061: syntax error : identifier 'DECLSPEC_HIDDEN'
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(30) : error C2054: expected '(' to follow 'DECLSPEC_HIDDEN'
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(30) : error C2085: 'SetDefaultDllDirectories' : not in formal parameter list
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\libloaderapi.h(31) : error C2061: syntax error : identifier 'DECLSPEC_HIDDEN'
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\winbase.h(64) : error C2061: syntax error : identifier 'SRWLOCK'
C:\users\eric\My Documents\cis201\Microsoft Visual C++ 6.0 Standard Edition\VC98\INCLUDE\winbase.h(64) : error C2059: syntax error : ';'
--------------------------------------------
----It still have a lot, I just cut short front parts of that compile errors
---------------
Hope to see your (or any experienced programers)'s advice again soon, thx a lot in advance


Top 
 Post Posted: Mon Jun 17, 2019 1:20 pm 
Offline
Level 7
Level 7
User avatar

Joined: Tue Nov 22, 2016 5:39 pm
Posts: 783
Does the same thing work under windows? And is there a free (and legal) version to test with?


Top 
 Post Posted: Mon Jun 17, 2019 4:57 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2637
Location: Cambridge
@air0forceb914

I'm still not seeing any code... If you don't post any source code - we won't be able to help you! :roll:
I would recommend isolating a core of the source, that demonstrates your issue, and posting that.
If the source code is something crazy (that you haven't written)... Then I'd recommend starting with a simpler project!
Don't bite of more than you can chew. :lol:

Also, again, I'll request that you use the forum Code tags, when posting any terminal output / code:
Code:
I AM CODE
I AM TERMINAL COMMANDS/OUTPUT

This is generally respectful thing to do any technical forum... Making your posts much easier to parse (and more likely to be taken seriously).

I've successfully used MS Visual Studio 2010, under Wine, to compile simple C++ source (mainly just to check Wine functionality).
I encountered some issues, that were not Wine related i.e. quirks of Microsoft implementation...
So it's worth checking online - if there are known issues with the Microsoft Visual C++ 6.0 version you are compiling with...

Also is the source code you're working with using a newer standard of C++ - than the compiler supports??
VC98 doesn't inspire great confidence!! :lol:

Bob


Top 
 Post Posted: Mon Jun 17, 2019 8:35 pm 
Offline
Level 1
Level 1

Joined: Thu Jun 13, 2019 1:52 pm
Posts: 5
I tested a source code written at year 2000, here is website I download, I just test first one cannon.zip

https://resources.oreilly.com/examples/0636920012221

its executable work good(in debug, cannon.exe), on my wine4.0 and wine4.10 32 bit arch, under my ubuntu19.04(64); but I like to tried to compile from its source .c .h source code; I don't mind to use vc6++(vc98) or any other VC; so long it work(successfully compile); my last tested fail is just
winnt.h: fatal error; need to define CONTEXT of your CPU (and some warnings, hope they are trivial)

hope any of you help me on the last step(cpu is core 2 duo T5270; gcc/++8.3 on ubuntu19.04 currently on wine4.10 32bit Arch)


Top 
 Post Posted: Mon Jun 17, 2019 8:55 pm 
Offline
Level 12
Level 12
User avatar

Joined: Sat Oct 16, 2010 7:40 pm
Posts: 2637
Location: Cambridge
air0forceb914 wrote:
I tested a source code written at year 2000, here is website I download, I just test first one cannon.zip

https://resources.oreilly.com/examples/0636920012221
...


Rather like getting blood out of a stone... Finally! :roll:
I'll test compile that program tomorrow...
Using Wine and the MS Visual C++ 6.0 Standard Edition compiler...

Thanks
Bob


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 7 posts ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: No registered users and 12 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: